cxxtools is a toolbox with reusable C++ components.
See INSTALL for installation instructions.
The Git repository does not contain a configure script, but it contains
configure.ac, which is used to generate it. You need autoconf and
automake to generate the configure script.
Run
autoreconf -i
to generate a configure script.
There are also some useful demo applications that show how to use various features of cxxtools.
cxxtools provides two command-line tools.
The siconvert tool converts between various serialization formats.
A short introduction is printed when the tool is called without arguments. Data can be read from standard input, and the result is written to standard output. The tool can also be used to format files for better readability.
The input format is typically specified using a lowercase letter and the output
format using an uppercase letter. The -d option enables formatted output
(think of "display").
Convert CSV data to JSON:
cat "foo.csv" | siconvert -cJd # or siconvert -cJd foo.csv
Convert cxxtools binary data to XML:
cat "foo.bin" | siconvert -bXd # or siconvert -bXd foo.bin
Format an existing JSON file:
cat "foo.json" | siconvert -jJd # or siconvert -jJd foo.json
The cxxtz command-line tool handles time zones. A short introduction is
printed when the tool is called without arguments.
List all time zones known to the system:
cxxtz -a
Print the current time in the Pacific/Nauru time zone:
cxxtz -c -z Pacific/Nauru