source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Configuration/include/XMLUtils.h @ 88

Last change on this file since 88 was 88, checked in by rosiere, 15 years ago

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
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
18namespace morpheo {
19namespace behavioural {
20namespace 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
Note: See TracBrowser for help on using the repository browser.