21 #ifndef __XAO_XAO_HXX__
22 #define __XAO_XAO_HXX__
33 #pragma warning(disable:4290) // Warning Exception ...
34 #pragma warning(disable:4251) // Warning dll-interface ...
62 Xao(
const std::string& author,
const std::string& version);
72 const std::string getAuthor()
const
80 void setAuthor(
const std::string& author)
89 const std::string getVersion()
const
97 void setVersion(
const std::string& version)
120 if (m_geometry !=
NULL)
122 m_geometry = geometry;
123 m_geometry->setReadOnly();
134 const int countGroups()
const;
153 bool removeGroup(
Group* group);
163 const
int countFields() const;
170 const XAO::
Type getFieldType(const
int& index) throw (XAO_Exception);
177 Field* getField(const
int& index) throw (XAO_Exception);
179 BooleanField* getBooleanField(const
int& index) throw (XAO_Exception);
180 DoubleField* getDoubleField(const
int& index) throw (XAO_Exception);
181 IntegerField* getIntegerField(const
int& index) throw (XAO_Exception);
182 StringField* getStringField(const
int& index) throw (XAO_Exception);
192 Field* addField(const XAO::
Type& type, const XAO::
Dimension& dim, const
int& nbComponents,
193 const std::
string& name = std::
string(""))
194 throw (XAO_Exception);
197 const std::
string& name = std::
string("")) throw (XAO_Exception);
199 const std::
string& name = std::
string("")) throw (XAO_Exception);
201 const std::
string& name = std::
string("")) throw (XAO_Exception);
203 const std::
string& name = std::
string("")) throw (XAO_Exception);
210 bool removeField(
Field* field);
221 const
bool exportXAO(const std::
string& fileName, const std::
string& shapeFileName);
226 const std::
string getXML();
233 const
bool importXAO(const std::
string& fileName);
239 const
bool setXML(const std::
string& xml);
242 void checkGeometry() const throw (XAO_Exception);
243 void checkGroupIndex(const
int& index) const throw (XAO_Exception);
244 void checkFieldIndex(const
int& index) const throw (XAO_Exception);
245 void checkGroupDimension(const XAO::
Dimension& dim) const throw (XAO_Exception);
249 std::
string m_author;
251 std::
string m_version;