source: XMLIO_V2/dev/dev_rv/src/data_output.hpp @ 141

Last change on this file since 141 was 141, checked in by hozdoba, 13 years ago

Mise à jour depuis un autre dépôt

File size: 1.9 KB
Line 
1#ifndef __XMLIO_DATA_OUTPUT__
2#define __XMLIO_DATA_OUTPUT__
3
4/// xmlioserver headers ///
5#include "xmlioserver_spl.hpp"
6#include "exception.hpp"
7#include "node/grid.hpp"
8#include "node/field.hpp"
9
10#include <mpi.h>
11#include <netcdf.h>
12
13namespace xmlioserver
14{
15   namespace io
16   {
17      /// ////////////////////// Déclarations ////////////////////// ///
18      class CDataOutput
19      {
20         public :
21
22            /// Définition de type ///
23            typedef enum { ONE_FILE = 0, MULTI_GROUP, MULTI_FILE } EDataOutputType;
24
25            /// Ecriture ///
26            void writeFile     (const boost::shared_ptr<tree::CFile>  file);
27            void writeField    (const boost::shared_ptr<tree::CField> field);
28            void writeFieldGrid(const boost::shared_ptr<tree::CField> field);
29            void writeFieldData(const boost::shared_ptr<tree::CField> field);
30
31            virtual void definition_start(void) = 0;
32            virtual void definition_end(void)   = 0;
33
34            virtual ~CDataOutput(void);
35
36         protected:
37
38            /// Ecriture ///
39            void writeGrid(const boost::shared_ptr<tree::CGrid>   grid);
40            void writeGrid(const boost::shared_ptr<tree::CDomain> domain,
41                           const boost::shared_ptr<tree::CAxis>   axis);
42            void writeGrid(const boost::shared_ptr<tree::CDomain> domain);
43
44            virtual void writeFile_  (const boost::shared_ptr<tree::CFile>   file)   = 0;
45            virtual void writeField_ (const boost::shared_ptr<tree::CField>  field)  = 0;
46            virtual void writeDomain_(const boost::shared_ptr<tree::CDomain> domain) = 0;
47            virtual void writeAxis_  (const boost::shared_ptr<tree::CAxis>   axis)   = 0;
48
49            /// Propriétés protégées ///
50            EDataOutputType type;
51
52      }; // class CDataOutput
53
54   } // namespace io
55} // namespace xmlioserver
56
57#endif //__XMLIO_DATA_OUTPUT__
Note: See TracBrowser for help on using the repository browser.