Last change
on this file since 120 was
120,
checked in by hozdoba, 14 years ago
|
Mise à jour intermédiaire ...
A venir : commit d'une version stable intégrant l'écriture de fichiers NetCDF4.
(en cours de finalisation actuellement)
|
File size:
1.2 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 CGrid; // CGRID = CDOMAINE + CAXIS |
---|
10 | |
---|
11 | class CField : public ObjectTemplate<CField>, public FieldAttribut |
---|
12 | { |
---|
13 | public: |
---|
14 | |
---|
15 | CField(void) : ObjectTemplate<CField>(), FieldAttribut(), grid(NULL) |
---|
16 | {/* Ne rien faire de plus */} |
---|
17 | CField(const string& _id) : ObjectTemplate<CField>(_id), FieldAttribut(), grid(NULL) |
---|
18 | {/* Ne rien faire de plus */} |
---|
19 | |
---|
20 | static string GetName(void) {return ("field"); } |
---|
21 | |
---|
22 | inline void SolveGridRef(void) ; |
---|
23 | |
---|
24 | CGrid* getGrid(void) const { return (grid); } |
---|
25 | |
---|
26 | virtual CField* getReference(void) const |
---|
27 | { |
---|
28 | if(!field_ref.hasValue()) return (NULL); |
---|
29 | if (!CField::HasObject(field_ref)) |
---|
30 | { WARNING("Référence invalide sur l'objet "+GetName()+" nommé \""+((string)field_ref)+"\""); return (NULL);} |
---|
31 | |
---|
32 | return (CField::GetObject(field_ref)); |
---|
33 | } |
---|
34 | |
---|
35 | virtual ~CField(void) |
---|
36 | { /* Ne rien faire de plus */ } |
---|
37 | |
---|
38 | private : |
---|
39 | |
---|
40 | CGrid* grid ; |
---|
41 | |
---|
42 | }; // class CField |
---|
43 | |
---|
44 | } // namespace XMLIOSERVER |
---|
45 | |
---|
46 | DECLARE_GROUP(Field) |
---|
47 | |
---|
48 | #endif // __FIELD__ |
---|
Note: See
TracBrowser
for help on using the repository browser.