The pplib++ library is used to work with express reports, dashboards, time series databases of mobile application, as well as to present data sources, their dimensions, tables and to work with repositories.
Main functions of the library:
Working with report dimensions and their attributes.
Working with OLAP cube.
Working with dashboards and their objects.
Working with report data source.
Working with repositories.
Working with time series databases.
Working with object used to create data tables.
The pplib++ library uses classes and their "wrappings" with a smart index that deletes objects when they are no longer required. To mark "wrappings", the S character is entered before name of the class, for example, the SPPLDimension wrapping exists for the PPLDimension class.
To connect the pplib++ library, follow the steps:
Replace in the GridDataViewDatasource.m file of static example the code implementing the gridView:valueForHeaderForRow:number: and gridView:valueForHeaderForColumn:number: methods with the code fragment presented in the drop-down menu.
The code fragment to replace for the GridDataViewDataSource.m file
It is also necessary to replace extension of the GridDataViewDatasource.m file with .mm.
Add links to the following platforms and library in the project settings:
CFNetwork.framework.
libsqlite3.dylib;.
MapKit.framework.
MessageUI.framework.
MobileAnalysis.framework.
OpenGLES.framework.
SystemConfiguration.framework..
NOTE. To connect platforms and libraries, go to the Build Phases tab in project purpose settings, open the Link Binary With Libraries section and add the specified platforms and libraries to the list.
Specify the path to header files of the MobileAnalysis.framework platform in project purpose settings User Header Search Paths (for example, $(SRCROOT)/../Frameworks/MobileAnalysis.framework/Headers).
NOTE. Project purpose settings are located on the Build Settings tab.
In the project purpose settings specify the YES value for the Mismatched Return Type parameter.
In the project purpose settings specify the C++ 11 [-std=c++11] value for the C++ Language Dialect parameter.
In the project purpose settings specify the libc++ (LLVM C++ standard library with C++11 support) value for the C++ Standard Library parameter.
In the project purpose settings specify the YES value for the Enable C++ Exceptions parameter.
In the project purpose settings specify the NO value for the Enable C++ Runtime Types parameter.
Make sure that the Objective-C Automatic Reference Counting option is disabled in the project purpose settings.
Add the following folders with their contents into the project:
ClassFactory.
Resources.
In the project purpose specify the -ObjC value in the Other Linker Flags setting.
After the pplib++ library is connected, a set of classes is available. Examples showing work with the library are given in the Examples of pplib++ Library Use section.
See also: