source: XMLIO_V2/dev/dev_rv/src/XMLIO/field.hpp @ 113

Last change on this file since 113 was 113, checked in by hozdoba, 14 years ago

Quelques changements de portée essentiellement. Modificiations mineures.

File size: 1.0 KB
Line 
1#ifndef __FIELD__
2#define __FIELD__
3
4using XMLIOSERVER::XML::XMLNode;
5using XMLIOSERVER::XML::THashAttributes;
6
7namespace 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         static string GetName(void) {return ("field"); }
19
20         virtual CField* getReference(void) const
21         {
22            if(!field_ref._hasValue()) return (NULL);
23            if (!CField::HasObject(field_ref))
24            { WARNING("Référence invalide sur l'objet "+GetName()+" nommé \""+((string)field_ref)+"\""); return (NULL);}
25
26            return (&CField::GetObject(field_ref));
27         }
28
29         virtual ~CField(void)
30         { /* Ne rien faire de plus */ }
31
32   }; // class CField
33
34}; // namespace XMLIOSERVER
35
36DECLARE_GROUP(Field);
37
38#endif // __FIELD__
Note: See TracBrowser for help on using the repository browser.