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.