Last change
on this file since 106 was
106,
checked in by hozdoba, 14 years ago
|
Commit intermédiaire en attendant l'arrivée de l'héritage par référence...
Prise en charge de la définition des fichiers.
Correction des fichiers xml de définition (pour tests).
Correction de deux problÚmes de mise à jour de context.
etc.
|
File size:
1.4 KB
|
Line | |
---|
1 | #ifndef __FIELD__ |
---|
2 | #define __FIELD__ |
---|
3 | |
---|
4 | using XMLIOSERVER::XML::XMLNode; |
---|
5 | using XMLIOSERVER::XML::THashAttributes; |
---|
6 | |
---|
7 | namespace XMLIOSERVER |
---|
8 | { |
---|
9 | class CField : public ObjectTemplate<CField>, public FieldAttribut |
---|
10 | { |
---|
11 | public: |
---|
12 | |
---|
13 | CField(void) : ObjectTemplate<CField>(), FieldAttribut() |
---|
14 | {/* Ne rien faire de plus */} |
---|
15 | CField(const string& _id) : ObjectTemplate<CField>(_id), FieldAttribut() |
---|
16 | {/* Ne rien faire de plus */} |
---|
17 | |
---|
18 | friend ostream& operator<< (ostream& out, const CField& c) |
---|
19 | { |
---|
20 | const AttributRegistrar &ar = c; |
---|
21 | out << IncIndent << "<" << c.getName() << c.printId() << ar << "/>" << DecEndl; |
---|
22 | return (out); |
---|
23 | } |
---|
24 | |
---|
25 | const char* getName(void) const {return ("Field"); } |
---|
26 | |
---|
27 | void parse (XMLNode& _node) |
---|
28 | { |
---|
29 | string name = _node.getElementName(); |
---|
30 | THashAttributes attributes; |
---|
31 | |
---|
32 | /// PARSING GESTION DES ATTRIBUTS /// |
---|
33 | _node.getAttributes(attributes); |
---|
34 | this->setAttributes(attributes); |
---|
35 | attributes.clear(); |
---|
36 | |
---|
37 | /// PARSING POUR GESION DES ENFANTS |
---|
38 | // Rien à faire. |
---|
39 | |
---|
40 | return; |
---|
41 | } |
---|
42 | |
---|
43 | ~CField(void) |
---|
44 | { /* Ne rien faire de plus */ } |
---|
45 | |
---|
46 | }; // class Field |
---|
47 | |
---|
48 | }; // namespace XMLIOSERVER |
---|
49 | |
---|
50 | #endif // __FIELD__ |
---|
Note: See
TracBrowser
for help on using the repository browser.