source: XMLIO_V2/dev/dev_rv/src/node/axis.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.8 KB
Line 
1#include "axis.hpp"
2
3#include "attribute_template_impl.hpp"
4#include "object_template_impl.hpp"
5#include "group_template_impl.hpp"
6
7namespace xmlioserver
8{
9   namespace tree
10   {
11      /// ////////////////////// Définitions ////////////////////// ///
12
13      CAxis::CAxis(void)
14         : CObjectTemplate<CAxis>()
15         , CAxisAttributes(), isChecked(false), relFiles()
16      { /* Ne rien faire de plus */ }
17
18      CAxis::CAxis(const StdString & id)
19         : CObjectTemplate<CAxis>(id)
20         , CAxisAttributes(), isChecked(false), relFiles()
21      { /* Ne rien faire de plus */ }
22
23      CAxis::~CAxis(void)
24      { /* Ne rien faire de plus */ }
25
26      ///---------------------------------------------------------------
27
28      const std::set<StdString> & CAxis::getRelFiles(void) const
29      {
30         return (this->relFiles);
31      }
32
33      bool CAxis::IsWritten(const StdString & filename) const
34      {
35         return (this->relFiles.find(filename) != this->relFiles.end());
36      }
37
38      void CAxis::addRelFile(const StdString & filename)
39      {
40         this->relFiles.insert(filename);
41      }
42
43      //----------------------------------------------------------------
44      StdString CAxis::GetName(void)   { return (StdString("axis")); }
45      StdString CAxis::GetDefName(void){ return (CAxis::GetName()); }
46
47      void CAxis::checkAttributes(void)
48      {
49         if (this->isChecked) return;
50         StdSize size = this->size.getValue();
51         StdSize true_size = zvalue.getValue()->num_elements();
52         if (size != true_size)
53            ERROR("CAxis::checkAttributes(void)",
54                  << "Le tableau \'zvalue\' a une taille différente de celle indiquée dans l'attribut \'size\'")
55
56         this->isChecked = true;
57      }
58
59      ///---------------------------------------------------------------
60
61   } // namespace tree
62} // namespace xmlioserver
Note: See TracBrowser for help on using the repository browser.