From 015e748d5f624cc0de6c61b87e9b17ede7478a9a Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sun, 22 Dec 2013 19:01:08 +0100 Subject: [PATCH] [DEV] add monk documentation --- ege/Environement.cpp | 2 +- ege/Environement.h | 6 +++--- lutin_ege.py | 5 ----- monk_ege.py | 15 +++++++++++++++ 4 files changed, 19 insertions(+), 9 deletions(-) create mode 100644 monk_ege.py diff --git a/ege/Environement.cpp b/ege/Environement.cpp index 8aef0d8..7307b2d 100644 --- a/ege/Environement.cpp +++ b/ege/Environement.cpp @@ -127,7 +127,7 @@ void ege::Environement::addCreator(const std::string& _type, ege::createElement_ getHachTableCreating().add(_type, _creator); } -ege::ElementGame* ege::Environement::createElement(const std::string& _type, bool _autoAddElement, ege::property_te _property, void* _value) { +ege::ElementGame* ege::Environement::createElement(const std::string& _type, bool _autoAddElement, enum ege::property _property, void* _value) { if (false == getHachTableCreating().exist(_type)) { EGE_ERROR("Request creating of an type that is not known '" << _type << "'"); return NULL; diff --git a/ege/Environement.h b/ege/Environement.h index 72251ab..76c076b 100644 --- a/ege/Environement.h +++ b/ege/Environement.h @@ -26,14 +26,14 @@ class btDynamicsWorld; #include namespace ege { - typedef enum { + enum property { typeNone, //!< no element property typeString, //!< type element static_cast(xxxxxxx) typeJson, //!< type element static_cast(xxxxxxx) typeXml, //!< type element static_cast(xxxxxxx) typeUser1, //!< user type 1 typeUser2 //!< User type 2 - } property_te; + }; class ElementGame; class Environement; typedef ege::ElementGame* (*createElement_tf)(ege::Environement& _env); @@ -88,7 +88,7 @@ namespace ege { * @return NULL if an error occured OR the pointer on the element and it is already added on the system. * @note Pointer is return in case of setting properties on it... */ - ege::ElementGame* createElement(const std::string& _type, bool _autoAddElement=true, ege::property_te _property=ege::typeNone, void* _value=NULL); + ege::ElementGame* createElement(const std::string& _type, bool _autoAddElement=true, enum ege::property _property=ege::typeNone, void* _value=NULL); ege::ElementGame* createElement(const std::string& _type, std::string& _description, bool _autoAddElement=true); ege::ElementGame* createElement(const std::string& _type, ejson::Value* _value, bool _autoAddElement=true); ege::ElementGame* createElement(const std::string& _type, exml::Node* _node, bool _autoAddElement=true); diff --git a/lutin_ege.py b/lutin_ege.py index 1e7e5a8..3a59921 100644 --- a/lutin_ege.py +++ b/lutin_ege.py @@ -5,11 +5,6 @@ import lutinTools def Create(target): # module name is 'edn' and type binary. myModule = lutinModule.module(__file__, 'ege', 'LIBRARY') - # enable doculentation : - myModule.doc_enable() - myModule.documentation.set_website("http://HeeroYui.github.io/ege/") - myModule.documentation.set_path(lutinTools.GetCurrentPath(__file__) + "/ege/") - myModule.documentation.set_external_link(['ewol', 'bullet']) # add the file to compile: myModule.AddSrcFile([ diff --git a/monk_ege.py b/monk_ege.py new file mode 100644 index 0000000..8696bdf --- /dev/null +++ b/monk_ege.py @@ -0,0 +1,15 @@ +#!/usr/bin/python +import monkModule as module +import monkTools as tools + +def create(): + # module name is 'edn' and type binary. + myModule = module.Module(__file__, 'ege', 'LIBRARY') + # enable doculentation : + myModule.set_website("http://heeroyui.github.io/ege/") + myModule.set_path(tools.get_current_path(__file__) + "/ege/") + # add the currrent module at the + return myModule + +def get_desc(): + return ""