Class: ewol::EObject


Synopsis:

+                                             EObject             (void);
+ EObject (const std::string & _name);
+ ~EObject (void);
+ void removeObject (void);
+ const char * const getObjectType (void);
+ std::string getTypeDescription (void);
+ bool isTypeCompatible (const std::string & _type);
+ bool getStatic (void);
+ int32_t getId (void);
+ void registerOnEvent (ewol::EObject * _destinationObject,
const char * _eventId,
const char * _eventIdgenerated,
const std::string & _overloadData);
+ void unRegisterOnEvent (ewol::EObject * _destinationObject,
const char * _eventId);
+ void onObjectRemove (ewol::EObject * _removeObject);
+ void onReceiveMessage (const ewol::EMessage & _msg);
+ const std::vector & getConfigList (void);
+ bool setConfig (const ewol::EConfig & _conf);
+ bool setConfig (const std::string & _config,
const std::string & _value);
+ bool setConfigNamed (const std::string & _objectName,
const std::string & _config,
const std::string & _value);
+ bool setConfigNamed (const std::string & _objectName,
const ewol::EConfig & _conf);
+ std::string getConfig (const char * _config);
+ std::string getConfig (const std::string & _config);
+ const std::string & getName (void);
+ void setName (const std::string & _name);
+ bool loadXML (exml::Element * _node);
+ bool storeXML (exml::Element * _node);
+ ewol::EObjectManager & getEObjectManager (void);
+ ewol::EMultiCast & getMultiCast (void);
+ eContext & getContext (void);
+ void setStatusResource (bool _val);
+ bool getStatusResource (void);
# void autoDestroy (void);
# void addObjectType (const char * _type);
# void addEventId (const char * _generateEventId);
# void generateEventId (const char * _generateEventId,
const std::string & _data);
# void sendMultiCast (const char * const _messageId,
const std::string & _data);
# void registerMultiCast (const char * const _messageId);
# void registerConfig (const char * _config,
const char * _type,
const char * _control,
const char * _description,
const char * _default);
# bool onSetConfig (const ewol::EConfig & _conf);
# bool onGetConfig (const char * _config,
std::string & _result);

Object Hierarchy:

ewol::EObject
    +--> ewol::Widget
    +--> ewol::Resource

Description:

//!< sometimes the user prefer to receive some specific data on an event (instead of the one sed by the widget)/** * @brief Basic message classes for ewol system * this class mermit at every EObject to communicate between them. */

Detail:

ewol::EObject ()

EObject(void);

Constructor.


ewol::EObject ()

EObject(const std::string & _name);

Constructor.


ewol::~EObject ()

~EObject(void);

Destructor


removeObject ()

void removeObject(void);

Asynchronous removing the object


getObjectType ()

const char * const getObjectType(void);

get the current Object type of the EObject


getTypeDescription ()

std::string getTypeDescription(void);

Get the herarchie of the EObject type.


isTypeCompatible ()

bool isTypeCompatible(const std::string & _type);

check if the element herited from a specific type


getStatic ()

bool getStatic(void);

get the static status of the EObject == > mark at true if the user set the object mark as static allocated element ==> not auto remove element


getId ()

int32_t getId(void);

get the UniqueId of the EObject


registerOnEvent ()

void registerOnEvent(ewol::EObject * _destinationObject,
                     const char * _eventId,
                     const char * _eventIdgenerated,
                     const std::string & _overloadData);

Register an EObject over an other to get event on the second...


unRegisterOnEvent ()

void unRegisterOnEvent(ewol::EObject * _destinationObject,
                       const char * _eventId);

Un-Register an EObject over an other.


onObjectRemove ()

void onObjectRemove(ewol::EObject * _removeObject);

Inform object that an other object is removed ...
Notes: : Sub classes must call this class


onReceiveMessage ()

void onReceiveMessage(const ewol::EMessage & _msg);

Receive a message from an other EObject with a specific eventId and data


getConfigList ()

const std::vector & getConfigList(void);

get all the configuration list


setConfig ()

bool setConfig(const ewol::EConfig & _conf);

Configuration requested to the curent EObject (systrem mode)


setConfig ()

bool setConfig(const std::string & _config,
               const std::string & _value);



setConfigNamed ()

bool setConfigNamed(const std::string & _objectName,
                    const std::string & _config,
                    const std::string & _value);



setConfigNamed ()

bool setConfigNamed(const std::string & _objectName,
                    const ewol::EConfig & _conf);



getConfig ()

std::string getConfig(const char * _config);

Configuration get from the curent EObject (systrem mode)


getConfig ()

std::string getConfig(const std::string & _config);



getName ()

const std::string & getName(void);

get the eObject name


setName ()

void setName(const std::string & _name);

get the Widget name


loadXML ()

bool loadXML(exml::Element * _node);

load properties with an XML node.


storeXML ()

bool storeXML(exml::Element * _node);

store properties in this XML node.


getEObjectManager ()

ewol::EObjectManager & getEObjectManager(void);



getMultiCast ()

ewol::EMultiCast & getMultiCast(void);



getContext ()

eContext & getContext(void);

get the curent the system inteface.


setStatusResource ()

void setStatusResource(bool _val);

Declare this element as a resource (or singleton) this mean the element will not be auto Remove at the end of the programm. It just notify that it is not removed.


getStatusResource ()

bool getStatusResource(void);

Get the resource status of the element.


autoDestroy ()

void autoDestroy(void);

Auto-destroy the object


addObjectType ()

void addObjectType(const char * _type);

Add a type of the list of eObject.


addEventId ()

void addEventId(const char * _generateEventId);

add a specific event Id in the list to prevent wrong link on a EObject


generateEventId ()

void generateEventId(const char * _generateEventId,
                     const std::string & _data);

generate event on all registered EObject


sendMultiCast ()

void sendMultiCast(const char * const _messageId,
                   const std::string & _data);

generate Multicast event on all EObject requested the event


registerMultiCast ()

void registerMultiCast(const char * const _messageId);

Register of the arrival of a Multicast message


registerConfig ()

void registerConfig(const char * _config,
                    const char * _type,
                    const char * _control,
                    const char * _description,
                    const char * _default);

the EObject add a configuration capabilities


onSetConfig ()

bool onSetConfig(const ewol::EConfig & _conf);

Configuration requested to the curent EObject


onGetConfig ()

bool onGetConfig(const char * _config,
                 std::string & _result);

Receive a configuration message from an other element system or from the curent EObject