Last change
on this file since 114 was
114,
checked in by hozdoba, 14 years ago
|
Le code respecte davantage la norme C++ 98 pour le portage sur les différentes plate-formes,
Une compilation plus restrictive passe sans problÚme sous gcc avec les options de compilation suivantes :
"-W -Wall -Wextra -Werror -ansi -pedantic "
et le retrait de certain avertissements :
-Wno-ignored-qualifiers < plusieurs avertissements dans Blitz.
-Wno-unused-parameter < des paramÚtres ne sont pas utilisés dans la classe BaseAttribut? (voir les get/set)
-Wno-long-long < besoin des long long pour le calendrier.
|
File size:
1.0 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 | 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 | |
---|
36 | DECLARE_GROUP(Field) |
---|
37 | |
---|
38 | #endif // __FIELD__ |
---|
Note: See
TracBrowser
for help on using the repository browser.