cxxtools is my toolbox with reusable c++-components
see INSTALL for installation-instructions
In the GIT-repository there is no configure-script, but configure.ac, which is the source for configure. You need autoconf and automake to create configure.
Run autoreconf -i
to generate a configure script.
Short howtos can be found here:
- parsing command line arguments
- using binary rpc
- details about handling connection in rpc clients
- reading and writing CSV
- reading and writing JSON
- using json rpc
- longging with cxxtools
- reading properties files
- rpc client and server
- serialization framework
- timezone
- xmlrpc
There are also some useful demo applications, which shows examples how to use various stuff from cxxtools. They can be found in the demo directory.
Two command line tools are offered by cxxtools.
The tool siconvert
allows converting between various formats.
A short introduction is printed when the tools is called without arguments. Data can be read from standard in and output is written to standard out. The tool can also be used to format files nicely.
The input format is typically passed as a small cap letter and the output format with a capital letter. The flag -d enables nicely formatted output (think of "display").
convert csv data to json:
cat "foo.csv" | siconvert -cJd
convert (cxxtools-)binary data to xml
cat "foo.bin" | siconvert -bXd
format a existing json file
cat "foo.json" | siconvert -jJd
The tool cxxtz
is a command line tool to handle time zones. A short
introduction is printed when the tools is called without arguments.
List all known time zones of the system:
cxxtz -a
Print the current time in the zime zone Pacific/Nauru
cxxtz -c -z Pacific/Nauru