Usage

The inlib/exlib code is delivered in the "inexlib.zip" source file found on the download area. To use inlib simply get the inexlib.zip file and unzip it somewhere. Then have in your code

    #include <inlib/some_file>
    ...
    <use things found in some_file>

for example :

    #include <inlib/histos/h1d>
    #include <inlib/random>
    ...
    inlib::random::gauss rg(1,2);
    inlib::histo::h1d h("Gauss",100,-5,5);
    for(int count=0;count<10000;count++) {
      h.fill(rg.shoot(),1.4);
    }
    h.hprint(std::cout);
    ...    

The only thing to do next is to arrange to have in your build system (Xcode, Eclipse, VisualStudio, a GNUmakefile, etc...) the :

    -I<path to inlib>
 or on a Windows build system :
    /I<path to inlib>

to find the used inlib files. Then rebuild your application and run ! Simple.

The usage of exlib is quite similar. For example to use exlib/jpeg :

    #include <exlib/jpeg>
    ...
    if(!exlib::jpeg::is("my_file.jpg")) {
      std::cout << " file is not a jpeg file." << std::endl;
    }
    ...

In your build system you need to have :

    -I<path to exlib> -I<path to inlib>

If not done, you have to install the external package and when done put in your build system (here for a UNIX like one) :

    -I<path to the used external package headers>
 and to link with the external package library :
    -L<path to the used external package lib dir> -l<lib of the external>

(For jpeg this is probably not needed on most Linuxes since jpeg is often already installed under the default paths known by the compiler). Then rebuild your application and run. Quite simple too.