Name

SernaConfig — The access to the values read from the Serna configuration.

Synopsis

class SernaConfig {
public:

  // public static functions

  PropertyNode root() ;
  SString getProperty(const SString &) ;
  SString getHomeDir() ;
  SString getDataDir() ;
  SString getConfigDir() ;
  SString resolveResource(const SString &, const SString &, const SString &, 
                          const PropertyNode & = PropertyNode()) ;
};

Description

SernaConfig public static functions

  1. PropertyNode root() ;

    Get root of the Serna configuration.


  2. SString getProperty(const SString & ) ;

    Shortcut to root()->getProperty(prop)


  3. SString getHomeDir() ;

    Get user home directory path.


  4. SString getDataDir() ;

    Get Serna installation path.


  5. SString getConfigDir() ;

    Get Serna configuration directory path.


  6. SString resolveResource(const SString & defaultPropName, const SString & src,                         const SString & baseUri,                         const PropertyNode & localVars = PropertyNode()) ;

    Resolve file resource using config "vars" section.