The Xao class describes the XAO format.
#include <XAO_Xao.hxx>
Public Member Functions | |
| Xao () | |
| Default constructor.  More... | |
| Xao (const std::string &author, const std::string &version) | |
| Constructor with author and version.  More... | |
| virtual | ~Xao () | 
| Destructor.  More... | |
| const std::string | getAuthor () const | 
| Gets the author of the file.  More... | |
| void | setAuthor (const std::string &author) | 
| Sets the author of the file.  More... | |
| const std::string | getVersion () const | 
| Gets the version of the file.  More... | |
| void | setVersion (const std::string &version) | 
| Sets the version of the file.  More... | |
| Geometry * | getGeometry () const | 
| Gets the geometry.  More... | |
| void | setGeometry (Geometry *geometry) throw (XAO_Exception) | 
| Sets the geometry.  More... | |
| const int | countGroups () const | 
| Gets the number of groups.  More... | |
| Group * | getGroup (const int &index) throw (XAO_Exception) | 
| Gets a group.  More... | |
| Group * | addGroup (const XAO::Dimension &dim, const std::string &name=std::string("")) throw (XAO_Exception) | 
| Adds a group.  More... | |
| bool | removeGroup (Group *group) | 
| Removes a group.  More... | |
| const int | countFields () const | 
| Gets the number of fields.  More... | |
| const XAO::Type | getFieldType (const int &index) throw (XAO_Exception) | 
| Gets the type of a field.  More... | |
| Field * | getField (const int &index) throw (XAO_Exception) | 
| Gets a field.  More... | |
| BooleanField * | getBooleanField (const int &index) throw (XAO_Exception) | 
| DoubleField * | getDoubleField (const int &index) throw (XAO_Exception) | 
| IntegerField * | getIntegerField (const int &index) throw (XAO_Exception) | 
| StringField * | getStringField (const int &index) throw (XAO_Exception) | 
| Field * | addField (const XAO::Type &type, const XAO::Dimension &dim, const int &nbComponents, const std::string &name=std::string("")) throw (XAO_Exception) | 
| Adds a field.  More... | |
| BooleanField * | addBooleanField (const XAO::Dimension &dim, const int &nbComponents, const std::string &name=std::string("")) throw (XAO_Exception) | 
| IntegerField * | addIntegerField (const XAO::Dimension &dim, const int &nbComponents, const std::string &name=std::string("")) throw (XAO_Exception) | 
| DoubleField * | addDoubleField (const XAO::Dimension &dim, const int &nbComponents, const std::string &name=std::string("")) throw (XAO_Exception) | 
| StringField * | addStringField (const XAO::Dimension &dim, const int &nbComponents, const std::string &name=std::string("")) throw (XAO_Exception) | 
| bool | removeField (Field *field) | 
| Removes a field.  More... | |
| const bool | exportXAO (const std::string &fileName, const std::string &shapeFileName) | 
| Exports this XAO object to a file.  More... | |
| const std::string | getXML () | 
| Gets the XML corresponding to this XAO.  More... | |
| const bool | importXAO (const std::string &fileName) | 
| Imports an XAO file into this object.  More... | |
| const bool | setXML (const std::string &xml) | 
| Sets an XML describing an XAO format to this object.  More... | |
Private Member Functions | |
| void | checkGeometry () const throw (XAO_Exception) | 
| void | checkGroupIndex (const int &index) const throw (XAO_Exception) | 
| void | checkFieldIndex (const int &index) const throw (XAO_Exception) | 
| void | checkGroupDimension (const XAO::Dimension &dim) const throw (XAO_Exception) | 
Private Attributes | |
| std::string | m_author | 
| The author of the file.  More... | |
| std::string | m_version | 
| The version of the file.  More... | |
| Geometry * | m_geometry | 
| The geometry.  More... | |
| std::list< Group * > | m_groups | 
| The list of groups.  More... | |
| std::list< Field * > | m_fields | 
| The list of fields.  More... | |
| Xao::Xao | ( | ) | 
References C_XAO_VERSION, m_author, m_geometry, m_version, and NULL.
| Xao::Xao | ( | const std::string & | author, | 
| const std::string & | version | ||
| ) | 
| author | the author of the file. | 
| version | the version of the XAO format. | 
References m_author, m_geometry, m_version, and NULL.
      
  | 
  virtual | 
References it(), m_fields, m_geometry, m_groups, and NULL.
| BooleanField * Xao::addBooleanField | ( | const XAO::Dimension & | dim, | 
| const int & | nbComponents, | ||
| const std::string & | name = std::string("")  | 
        ||
| ) | throw (XAO_Exception) | 
| DoubleField * Xao::addDoubleField | ( | const XAO::Dimension & | dim, | 
| const int & | nbComponents, | ||
| const std::string & | name = std::string("")  | 
        ||
| ) | throw (XAO_Exception) | 
| Field * Xao::addField | ( | const XAO::Type & | type, | 
| const XAO::Dimension & | dim, | ||
| const int & | nbComponents, | ||
| const std::string & | name = std::string("")  | 
        ||
| ) | throw (XAO_Exception) | 
| type | the type of the field. | 
| dim | the dimension of the field. | 
| nbComponents | the number of components in the field. | 
| name | the name of the field. | 
References XAO::Field::createField().
| Group * Xao::addGroup | ( | const XAO::Dimension & | dim, | 
| const std::string & | name = std::string("")  | 
        ||
| ) | throw (XAO_Exception) | 
| dim | the dimension of the group. | 
| name | the name of the group. | 
| IntegerField * Xao::addIntegerField | ( | const XAO::Dimension & | dim, | 
| const int & | nbComponents, | ||
| const std::string & | name = std::string("")  | 
        ||
| ) | throw (XAO_Exception) | 
| StringField * Xao::addStringField | ( | const XAO::Dimension & | dim, | 
| const int & | nbComponents, | ||
| const std::string & | name = std::string("")  | 
        ||
| ) | throw (XAO_Exception) | 
      
  | 
  private | 
      
  | 
  private | 
References m_geometry, and NULL.
      
  | 
  private | 
References XAO::WHOLE.
      
  | 
  private | 
| const int Xao::countFields | ( | ) | const | 
References m_fields.
| const int Xao::countGroups | ( | ) | const | 
References m_groups.
| const bool Xao::exportXAO | ( | const std::string & | fileName, | 
| const std::string & | shapeFileName | ||
| ) | 
| fileName | the name of the file to create. | 
| shapeFileName | if not empty, export the shape to this external file. | 
References XAO::XaoExporter::saveToFile().
      
  | 
  inline | 
| BooleanField * Xao::getBooleanField | ( | const int & | index | ) | throw (XAO_Exception) | 
References XAO::BOOLEAN, and XAO::Field::getType().
| DoubleField * Xao::getDoubleField | ( | const int & | index | ) | throw (XAO_Exception) | 
References XAO::DOUBLE, and XAO::Field::getType().
| Field * Xao::getField | ( | const int & | index | ) | throw (XAO_Exception) | 
| const XAO::Type Xao::getFieldType | ( | const int & | index | ) | throw (XAO_Exception) | 
| index | the index of the wanted field. | 
      
  | 
  inline | 
| Group * Xao::getGroup | ( | const int & | index | ) | throw (XAO_Exception) | 
| IntegerField * Xao::getIntegerField | ( | const int & | index | ) | throw (XAO_Exception) | 
References XAO::Field::getType(), and XAO::INTEGER.
| StringField * Xao::getStringField | ( | const int & | index | ) | throw (XAO_Exception) | 
References XAO::Field::getType(), and XAO::STRING.
      
  | 
  inline | 
| const std::string Xao::getXML | ( | ) | 
References XAO::XaoExporter::saveToXml().
| const bool Xao::importXAO | ( | const std::string & | fileName | ) | 
| fileName | the name of the file to import. | 
References XAO::XaoExporter::readFromFile().
| bool Xao::removeField | ( | Field * | field | ) | 
| field | the field to remove. | 
References countFields(), m_fields, and NULL.
| bool Xao::removeGroup | ( | Group * | group | ) | 
| group | the group to remove. | 
References countGroups(), m_groups, and NULL.
      
  | 
  inline | 
| author | the author to set. | 
      
  | 
  inline | 
| geometry | the geometry to set. | 
References NULL.
      
  | 
  inline | 
| version | the version to set. | 
| const bool Xao::setXML | ( | const std::string & | xml | ) | 
| xml | the XML to set. | 
References XAO::XaoExporter::setXML().
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private |