Changeset 120 for XMLIO_V2/dev/dev_rv/src/XMLIO/field.hpp
- Timestamp:
- 09/08/10 15:02:31 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/XMLIO/field.hpp
r114 r120 7 7 namespace XMLIOSERVER 8 8 { 9 class CGrid; // CGRID = CDOMAINE + CAXIS 10 9 11 class CField : public ObjectTemplate<CField>, public FieldAttribut 10 12 { 11 13 public: 12 14 13 CField(void) : ObjectTemplate<CField>(), FieldAttribut() 15 CField(void) : ObjectTemplate<CField>(), FieldAttribut(), grid(NULL) 14 16 {/* Ne rien faire de plus */} 15 CField(const string& _id) : ObjectTemplate<CField>(_id), FieldAttribut() 17 CField(const string& _id) : ObjectTemplate<CField>(_id), FieldAttribut(), grid(NULL) 16 18 {/* Ne rien faire de plus */} 17 19 18 20 static string GetName(void) {return ("field"); } 19 21 22 inline void SolveGridRef(void) ; 23 24 CGrid* getGrid(void) const { return (grid); } 25 20 26 virtual CField* getReference(void) const 21 27 { 22 if(!field_ref. _hasValue()) return (NULL);28 if(!field_ref.hasValue()) return (NULL); 23 29 if (!CField::HasObject(field_ref)) 24 30 { WARNING("Référence invalide sur l'objet "+GetName()+" nommé \""+((string)field_ref)+"\""); return (NULL);} 25 31 26 return ( &CField::GetObject(field_ref));32 return (CField::GetObject(field_ref)); 27 33 } 28 34 29 35 virtual ~CField(void) 30 36 { /* Ne rien faire de plus */ } 37 38 private : 39 40 CGrid* grid ; 31 41 32 42 }; // class CField
Note: See TracChangeset
for help on using the changeset viewer.