New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
axis.hpp in vendors/XIOS/current/src/node – NEMO

source: vendors/XIOS/current/src/node/axis.hpp @ 3408

Last change on this file since 3408 was 3408, checked in by rblod, 12 years ago

importing initial XIOS vendor drop

  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1#ifndef __XMLIO_CAxis__
2#define __XMLIO_CAxis__
3
4/// xios headers ///
5#include "xmlioserver_spl.hpp"
6#include "group_factory.hpp"
7
8#include "declare_group.hpp"
9
10namespace xios {
11   
12   /// ////////////////////// Déclarations ////////////////////// ///
13
14   class CAxisGroup;
15   class CAxisAttributes;
16   class CAxis;
17
18   ///--------------------------------------------------------------
19
20   // Declare/Define CAxisAttribute
21   BEGIN_DECLARE_ATTRIBUTE_MAP(CAxis)
22#  include "axis_attribute.conf"
23   END_DECLARE_ATTRIBUTE_MAP(CAxis)
24
25   ///--------------------------------------------------------------
26
27   class CAxis
28      : public CObjectTemplate<CAxis>
29      , public CAxisAttributes
30   {
31         /// typedef ///
32         typedef CObjectTemplate<CAxis>   SuperClass;
33         typedef CAxisAttributes SuperClassAttribute;
34
35      public :
36
37         typedef CAxisAttributes RelAttributes;
38         typedef CAxisGroup      RelGroup;
39
40         /// Constructeurs ///
41         CAxis(void);
42         explicit CAxis(const StdString & id);
43         CAxis(const CAxis & axis);       // Not implemented yet.
44         CAxis(const CAxis * const axis); // Not implemented yet.
45
46         /// Accesseurs ///
47         const std::set<StdString> & getRelFiles(void) const;
48
49         /// Test ///
50         bool IsWritten(const StdString & filename) const;
51
52         /// Mutateur ///
53         void addRelFile(const StdString & filename);
54
55         /// Vérifications ///
56         void checkAttributes(void);
57
58         /// Destructeur ///
59         virtual ~CAxis(void);
60
61         /// Accesseurs statiques ///
62         static StdString GetName(void);
63         static StdString GetDefName(void);
64         
65         static ENodeType GetType(void);
66
67      private :
68
69         bool isChecked;
70         std::set<StdString> relFiles;
71
72
73   }; // class CAxis
74
75   ///--------------------------------------------------------------
76
77   // Declare/Define CAxisGroup and CAxisDefinition
78   DECLARE_GROUP(CAxis);
79
80   ///--------------------------------------------------------------
81
82} // namespace xios
83
84#endif // __XMLIO_CAxis__
Note: See TracBrowser for help on using the repository browser.