Changeset 97
- Timestamp:
- 06/04/10 15:59:28 (14 years ago)
- Location:
- XMLIO_V2/dev/dev_rv
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/xmlio_logger.hpp
r95 r97 10 10 #include <Poco/Message.h> 11 11 12 #include <Poco/AutoPtr.h> 13 14 12 15 // Classes utilisées issues de Poco 13 16 using Poco::Logger; … … 17 20 using Poco::FileChannel; 18 21 using Poco::Message; 22 23 using Poco::AutoPtr; 19 24 20 25 namespace XMLIOSERVER … … 29 34 30 35 // TODO Créer une sortie fichier. 31 pf = new PatternFormatter("[%Y-%m-%d %H:%M:%S] %t");32 cc = new ConsoleChannel();33 pFCConsole = new FormattingChannel();36 AutoPtr<PatternFormatter> pf = new PatternFormatter("[%Y-%m-%d %H:%M:%S] %t"); 37 AutoPtr<ConsoleChannel> cc = new ConsoleChannel(); 38 AutoPtr<FormattingChannel> pFCConsole = new FormattingChannel(pf); 34 39 pFCConsole->setChannel(cc); 35 40 pFCConsole->open(); … … 39 44 static Logger & GetConsoleLogger(void) {return (Logger::get("ConsoleLogger"));} 40 45 41 ~ILogger(void) { delete pf;} 42 43 private : 44 FormattingChannel * pFCConsole; 45 PatternFormatter * pf; 46 ConsoleChannel * cc; 47 46 ~ILogger(void) 47 { /* Ne rien faire de plus */ } 48 48 49 }; // class XMLIOLogger 49 50 -
XMLIO_V2/dev/dev_rv/xmlio_object_template.hpp
r96 r97 31 31 { 32 32 T* value = new T; 33 ObjectTemplate<T>::AllListObj[CurrContext].addObject(value); //<< Perte mémoire ici33 ObjectTemplate<T>::AllListObj[CurrContext].addObject(value); 34 34 return (*value); 35 35 } … … 38 38 { return (*ObjectTemplate<T>::AllListObj[CurrContext][_id]); } 39 39 40 static bool HasObject(const string _id) 40 static bool HasObject(const string _id)// << Bug 41 41 { return (ObjectTemplate<T>::AllListObj[CurrContext].hasMappedValue(_id)); } 42 42 -
XMLIO_V2/dev/dev_rv/xmlio_xml_node.hpp
r96 r97 137 137 AutoPtr<NamedNodeMap> map = this->getCNode()->attributes(); 138 138 139 for(unsigned int i = 0; i< map->length(); i++)140 attributes[map->item(i)->nodeName()] = map->item(i)->nodeValue();139 for(unsigned int i = 0; i< map->length(); i++) 140 attributes[map->item(i)->nodeName()] = map->item(i)->nodeValue(); 141 141 142 return (true);142 return (true); 143 143 } 144 144 -
XMLIO_V2/dev/dev_rv/xmlio_xml_parser.hpp
r96 r97 55 55 ifstream istr( file.c_str() , ifstream::in ); 56 56 XMLNode node("simulation"); 57 XMLNode::CreateNode(node, istr );57 XMLNode::CreateNode(node, istr, "simulation"); 58 58 XMLParser::Parse(node); 59 59 log << "Nombre de Contexts listés : " << Context::GetCurrentListObject().getSize() << " contre 1 attendus."<< std::endl;
Note: See TracChangeset
for help on using the changeset viewer.