Using C++ classes and plain C API

NOTE on syntax: as C and C++ don't have properties, in C++ class properties are represented by get_PropertyName() and set_PropertyName() methods.

C++ classes are provided in source code and are located in <CBFS Storage>\CPP directory. You need to compile those classes according to your needs. C++ classes make use of static libraries located in subdirectories of <CBFS Storage>\Lib directory as listed below.

CBFS Storage libraries

If you need to use plain C API or compile C++ classes, add CBFS Storage libraries mentioned below to your project.

  • Windows 32-bit:
    Use the library files located in <CBFS Storage>\Lib\Win32\Static directory
  • Windows 64-bit:
    Use the library files located in <CBFS Storage>\Lib\Win64\Static directory
  • Linux:
    Separate downloads are provided for 32-bit and 64-bit versions of Linux. The library with CBFS Storage engine (libcbfsstorage.a) can be found in <CBFS Storage>/Lib/ directory
  • macOS and iOS:
    The library with CBFS Storage engine (libcbfsstorage.a) can be found in <CBFS Storage>/Lib/ directory
  • Android:
    Separate downloads are provided for various procesor architectures of Android devices. The library with CBFS Storage engine is called libcbfsstorage.a and can be found in <CBFS Storage>/Lib/android directory

Additional dependencies

On Linux and macOS systems you need to link some additional libraries to your project:

  • Linux:
    "m" library must be linked to your project.

Compilation options

On Linux, Android and macOS the project must be compiled with the following compiler options:

-D_FILE_OFFSET_BITS=64 -pthread
On macOS it is also necessary to add "/usr/local/lib/**" to "Library Search Paths" path of your project's Build Settings.

See How To Start using the API topic for further instructions.