[DEV] update Readme

This commit is contained in:
Edouard DUPIN 2014-09-15 22:22:41 +02:00
parent 4d54a562fc
commit bcd6b8230b
4 changed files with 21 additions and 3 deletions

View File

@ -27,7 +27,9 @@ Dependency packages
# For andoid compilation (jdk 7 does not work...)
sudo apt-get install javacc openjdk-6-jdk
# if you want to compile for windows :
sudo apt-get install mingw32
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-mingw-w64
# on 64 bits processor for compatibility
sudo apt-get install ia32-libs

View File

@ -31,8 +31,12 @@ namespace ewol {
* @return number of Object
*/
int32_t getNumberObject();
/**
* @brief Display all object Open.
*/
void displayListObject();
private:
//! @not-in-doc
friend class ewol::Object;
/**
* @brief Internal API that used only with Object toi reference itself in the manager.
@ -41,10 +45,16 @@ namespace ewol {
*/
void add(const std::shared_ptr<ewol::Object>& _object);
public:
/**
* @brief clean the weak pointer list (remove weak_ptr that is remoed)
*/
void cleanInternalRemoved();
/**
* @brief Retrive an Object with his name
* @param[in] _name Name of the Object
* @return Pointer on the finded Object.
*/
std::shared_ptr<ewol::Object> get(const std::string& _name);
public:
/**
* @brief retrive an object with his name

View File

@ -28,6 +28,7 @@ void ewol::Object::autoDestroy() {
parent->requestDestroyFromChild(shared_from_this());
}
//if no parent ==> noting to do ...
m_destroy = true;
}
void ewol::Object::requestDestroyFromChild(const std::shared_ptr<ewol::Object>& _child) {
@ -46,6 +47,7 @@ void ewol::Object::removeParent() {
ewol::Object::Object() :
m_objectHasBeenInit(false),
m_destroy(false),
m_static(false),
m_name(*this, "name", "", "Object name, might be a unique reference in all the program"),
m_isResource(false) {

View File

@ -79,6 +79,7 @@ namespace ewol {
}
protected:
std::weak_ptr<Object> m_parent;
bool m_destroy;
protected:
/**
* @brief Auto-destroy the object
@ -88,6 +89,9 @@ namespace ewol {
virtual void destroy() {
autoDestroy();
}
bool isDestroyed() const {
return m_destroy;
}
public:
virtual void requestDestroyFromChild(const std::shared_ptr<Object>& _child);
virtual void setParent(const std::shared_ptr<Object>& _newParent);