[88] | 1 | #ifndef morpheo_behavioural_configuration_XMLUtils_h |
---|
| 2 | #define morpheo_behavioural_configuration_XMLUtils_h |
---|
| 3 | |
---|
| 4 | /* |
---|
| 5 | * $Id: XMLUtils.h 88 2008-12-10 18:31:39Z rosiere $ |
---|
| 6 | * |
---|
| 7 | * [ Description ] |
---|
| 8 | * |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | #include "Behavioural/include/FileXMLLight.h" |
---|
| 12 | #include "Behavioural/include/XMLLightFunctors.h" |
---|
| 13 | #include "Common/include/ErrorMorpheo.h" |
---|
| 14 | #include "Common/include/Debug.h" |
---|
| 15 | #include <string> |
---|
| 16 | #include <map> |
---|
| 17 | |
---|
| 18 | namespace morpheo { |
---|
| 19 | namespace behavioural { |
---|
| 20 | namespace configuration { |
---|
| 21 | |
---|
| 22 | typedef XMLUtils::IXMLLightASCII XML_t; |
---|
| 23 | typedef std::basic_string<char> attribute_t; |
---|
| 24 | typedef std::map<std::basic_string<char>, std::basic_string<char> > attributes_t; |
---|
| 25 | |
---|
| 26 | attribute_t getAttribute (XML_t * xml, |
---|
| 27 | attributes_t & attributes, |
---|
| 28 | const attribute_t & name); |
---|
| 29 | |
---|
| 30 | void testAttributesEmpty (XML_t * xml, |
---|
| 31 | attributes_t attributes); |
---|
| 32 | |
---|
| 33 | void testNoAttribute (XML_t * xml); |
---|
| 34 | void testNodeName (XML_t * xml, std::string name); |
---|
| 35 | void testSingleton (XML_t * xml, bool must_be_singleton); |
---|
| 36 | |
---|
| 37 | }; // end namespace configuration |
---|
| 38 | }; // end namespace behavioural |
---|
| 39 | }; // end namespace morpheo |
---|
| 40 | |
---|
| 41 | #endif |
---|