Working with pplib++ Library

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.

Functions

Main functions of the library:

Use

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.

Connecting the Library

To connect the pplib++ library, follow the steps:

  1. Add the Dashboard, Datasources, ExpressAnalysis and Procedural folders with their contents to the project folder, these folders are contained in the static demo project MobileAnalysisDemo. For example, the Dashboard, ExpressAnalysis and Procedural folders can be retrieved from: components-*/prognoz-mobileappios/Sources/ to the Datasources folder in the following path: components-*/prognoz-mobileappios/Sources/ExpressAnalysis/Datasources.
  2. 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.

  3. 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.

  4. 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.

  5. In the project purpose settings specify the YES value for the Mismatched Return Type parameter.

  6. In the project purpose settings specify the C++ 11 [-std=c++11] value for the C++ Language Dialect parameter.

  7. In the project purpose settings specify the libc++ (LLVM C++ standard library with C++11 support) value for the C++ Standard Library parameter.

  8. In the project purpose settings specify the YES value for the Enable C++ Exceptions parameter.

  9. In the project purpose settings specify the NO value for the Enable C++ Runtime Types parameter.

  10. Make sure that the Objective-C Automatic Reference Counting option is disabled in the project purpose settings.

  11. Add the following folders with their contents into the project:

    • ClassFactory.

    • Resources.

  12. 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:

iOS Components