Object.hpp
Go to the documentation of this file.
33 template<class TYPE_OBJECT> static void baseInit(const ememory::SharedPtr<TYPE_OBJECT>& _object) {
38 template<class TYPE_OBJECT, class TYPE_VAL, class ... TYPE> static void baseInit(const ememory::SharedPtr<TYPE_OBJECT>& _object, const std::string& _name, const TYPE_VAL& _val, TYPE&& ... _all ) {
52 EWOL_ERROR("property does not cast in requested type ... '" << _name << "' require type : " << typeid(_val).name() << "' instead of '" << prop->getType() << "'");
62 template<class ... EWOL_FACTORY_CREATE_TYPE> static ememory::SharedPtr<className> create(const EWOL_FACTORY_CREATE_TYPE& ... _all) = delete;
65 template<class ... EWOL_FACTORY_CREATE_TYPE> static ememory::SharedPtr<className> create(const EWOL_FACTORY_CREATE_TYPE& ... _all) { \
80 template<class ... EWOL_FACTORY_CREATE_TYPE> static ememory::SharedPtr<className> create(const EWOL_FACTORY_CREATE_TYPE& ... _all) { \
86 EWOL_CRITICAL("Request object element: '" << uniqueName << "' With the wrong type (dynamic cast error)"); \
222 bool propertySetOnWidgetNamed(const std::string& _objectName, const std::string& _config, const std::string& _value);
285 ememory::SharedPtr<_type> myObject = ememory::dynamicPointerCast<_type>(getSubObjectNamed(_name)); \
293 template<class TYPE> void subBind(ememory::SharedPtr<ewol::Object> _obj, void (TYPE::*_func)()) {
299 m_callerList.push_back(std::make_pair(ewol::ObjectWeak(_obj), std::connect(_func, obj2.get())));
303 bool propertySetOnObjectNamed(const std::string& _objectName, const std::string& _config, const std::string& _value);
310 ememory::SharedPtr<_type> myObject = ememory::dynamicPointerCast<_type>(ewol::getContext().getEObjectManager().getObjectNamed(_name)); \
322 ememory::SharedPtr<_type> myObject = ememory::dynamicPointerCast<_type>(_object->getObjectNamed(_name)); \
Basic message classes for ewol system this class mermit at every Object to communicate between them...
Definition: Object.hpp:113
bool m_destroy
Flag to know if the object is requesting has destroy.
Definition: Object.hpp:142
ewol::ObjectWeak m_parent
Reference on the current parrent.
Definition: Object.hpp:141
void init(int _argc, const char **_argv)
Definition: Area.hpp:16
virtual void setDirectCheck(const TYPE &_newVal)
void setStatusResource(bool _val)
Declare this element as a resource (or singleton) this mean the element will not be auto Remove at th...
Definition: Object.hpp:257
bool getStatusResource() const
Get the resource status of the element.
Definition: Object.hpp:264
eproperty::Value< std::string > propertyName
name of the element ...
Definition: Object.hpp:119
bool getStatic()
get the static status of the Object == > mark at true if the user set the object mark as static alloc...
Definition: Object.hpp:207
Definition: Context.hpp:26
Definition: Manager.hpp:18
bool m_static
set this variable at true if this element must not be auto destroy (exemple : use static object) ...
Definition: Object.hpp:201
Context & getContext()
From everyware in the program, we can get the context inteface.