source: XMLIO_V2/dev/dev_rv/src/data_output.cpp @ 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.7 KB
Line 
1#include "data_output.hpp"
2
3#include "attribute_template_impl.hpp"
4
5namespace xmlioserver
6{
7   namespace io
8   {
9      /// ////////////////////// Définitions ////////////////////// ///
10
11      CDataOutput::~CDataOutput(void)
12      { /* Ne rien faire de plus */ }
13
14      void CDataOutput::writeGrid
15         (const boost::shared_ptr<tree::CGrid> grid)
16      {
17         if (grid->domain_ref.isEmpty())
18            ERROR("CONetCDF4Adv::writeGrid(grid)",
19                   << " domain is not defined !");
20
21         if (grid->axis_ref.isEmpty())
22         {
23            this->writeGrid
24            (CObjectFactory::GetObject<tree::CDomain>(grid->domain_ref.getValue()));
25         }
26         else
27         {
28            this->writeGrid
29            (CObjectFactory::GetObject<tree::CDomain>(grid->domain_ref.getValue()),
30             CObjectFactory::GetObject<tree::CAxis>(grid->axis_ref.getValue()));
31         }
32      }
33
34      void CDataOutput::writeFile
35         (const boost::shared_ptr<tree::CFile>  file)
36      {
37         this->writeFile_(file);
38      }
39
40      void CDataOutput::writeGrid
41         (const boost::shared_ptr<tree::CDomain> domain,
42          const boost::shared_ptr<tree::CAxis> axis)
43      {
44         this->writeDomain_(domain);
45         this->writeAxis_(axis);
46      }
47
48      void CDataOutput::writeGrid
49         (const boost::shared_ptr<tree::CDomain> domain)
50      {
51         this->writeDomain_(domain);
52      }
53
54      void CDataOutput::writeField
55         (const boost::shared_ptr<tree::CField> field)
56      {
57         this->writeField_(field);
58      }
59
60      void CDataOutput::writeFieldGrid
61         (const boost::shared_ptr<tree::CField> field)
62      {
63         this->writeGrid(field->getRelGrid());
64      }
65
66   } // namespace io
67} // namespace xmlioserver
Note: See TracBrowser for help on using the repository browser.