class: ewol::resource::ConfigFile


Description:



Constructor and Destructor:

#                                                     ConfigFile                     ();
+ virtual ~ConfigFile ();

Synopsis:

# void                                        init                           (const std::string & _filename);
+ DECLARE_RESOURCE_NAMED_FACTORY (ConfigFile );
+ void reload ();
+ int32_t request (const std::string & _paramName);
+ double getNumber (int32_t _id);
+ const std::string & getString (int32_t _id);
+ bool getBoolean (int32_t _id);
+ std::shared_ptr<ewol::resource::ConfigFile> keep (const std::string & _filename);

Object Hierarchy:

+std::enable_shared_from_this<Object>
+ewol::object::ParameterList
+ewol::object::SignalList
+--> +ewol::Object
+--> +ewol::Resource
+--> ewol::resource::ConfigFile

Detail:

ConfigFile

#  ConfigFile ();



init

# void init (const std::string & _filename);



~ConfigFile

+ virtual  ~ConfigFile ();



DECLARE_RESOURCE_NAMED_FACTORY

+  DECLARE_RESOURCE_NAMED_FACTORY (ConfigFile );



reload

+ void reload ();
User request the reload of all resources (usefull when the file depend on DATA:GUI:xxx ...


request

+ int32_t request (const std::string & _paramName);



getNumber

+ double getNumber (int32_t _id);



getString

+ const std::string & getString (int32_t _id);



getBoolean

+ bool getBoolean (int32_t _id);



keep

+ std::shared_ptr<ewol::resource::ConfigFile> keep (const std::string & _filename);
keep the resource pointer.
Note: Never free this pointer by your own...