There are two recls mappings for C++:
- recls/C++ (in the recls::cpp namespace) is a 'classic' mapping, i.e. the classes present a non-STL interface
- recls/STL (in the recls::stl namespace) is an STL-like mapping
For recls/C++ there are two sample programs provided:
- The Cpp_simple program provides a minimal example of using the recls/C++ mapping, intended to get you up and running as soon as possible.
- The Cpp_full program provides a full example of using the recls/C++ mapping, intended to demonstrate all the available functionality.
For recls/STL there are two sample programs provided:
- The STL_simple program provides a minimal example of using the recls/STL mapping, intended to get you up and running as soon as possible.
- The STL_full program provides a full example of using the recls/STL mapping, intended to demonstrate all the available functionality.
This sample/test program, located in the test/Cpp_simple subdirectory, shows a minimal use of the mapping, to load a memory database (from a literal string), display information about the database (# of lines, fields, records), and then enumerate the records and their constituent fields.
This sample/test program, located in the test/Cpp_full subdirectory, shows a full use of the Cpp-API, including error-handling and use of the FileDatabase class to load a file named on the command-line. It also allows the specification of the ORJ_FLAG_ORDERFIELDS and/or ORJ_FLAG_ELIDEBLANKRECORDS flags, via the command-line, which can moderate the database contents as expressed by the API.
This program has various aspects that are peripheral to the quick absorption of the mapping, and should be examined and tested after Cpp_simple.
This sample/test program, located in the test/STL_simple subdirectory, shows a minimal use of the mapping, to load a memory database (from a literal string), display information about the database (# of lines, fields, records), and then enumerate the records and their constituent fields.
This sample/test program, located in the test/STL_full subdirectory, shows a full use of the STL-API, including error-handling and use of the file_database class to load a file named on the command-line. It also allows the specification of the ORJ_FLAG_ORDERFIELDS and/or ORJ_FLAG_ELIDEBLANKRECORDS flags, via the command-line, which can moderate the database contents as expressed by the API.
This program has various aspects that are peripheral to the quick absorption of the mapping, and should be examined and tested after STL_simple.