Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

Creating a registry

class HxRegistry {
                        HxRegistry();
                        ~HxRegistry();
 
    static HxRegistry&  instance();
 
    HxRegKey*           insertKey(HxString path);
    void                eraseKey(HxString path);
};

HxRegistry::instance().insertKey("/methods/getCount");

The class HxRegistry provides a default constructor to create a new empty registry. It also grants access to a unique instance of the class. In this respect the class HxRegistry behaves as a singleton class. This unique instance can be used to share a registry throughout the complete library and possible applications. In the Horus library, this instance is the ``horus registry''.

Keys can be inserted with the method HxRegistry::insertKey. The key to be inserted must be specified with its path. Paths are absolute (from the root of the registry), or relative to the ``current'' key in the registry. Absolute paths start with ``/''. If a specified key already exists, nothing happens. See below for a description of the current key.


Go to the next section or go to registry or return to the index.


Generated on Mon Jan 27 15:49:13 2003 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001