2013-08-27 11:27:42 +00:00
|
|
|
// Copyright (C) 2013 CEA/DEN, EDF R&D
|
|
|
|
//
|
|
|
|
// This library is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation; either
|
|
|
|
// version 2.1 of the License.
|
|
|
|
//
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
// License along with this library; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
//
|
|
|
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
|
|
|
//
|
|
|
|
// Author : Frederic Pons (OpenCascade)
|
|
|
|
|
|
|
|
#ifndef __XAO_BOOLEANFIELD_HXX__
|
|
|
|
#define __XAO_BOOLEANFIELD_HXX__
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2013-09-06 12:39:33 +00:00
|
|
|
#include "XAO_Xao.hxx"
|
|
|
|
#include "XAO_Field.hxx"
|
|
|
|
#include "XAO_BooleanStep.hxx"
|
2013-08-27 11:27:42 +00:00
|
|
|
|
|
|
|
namespace XAO
|
|
|
|
{
|
2013-09-11 13:39:07 +00:00
|
|
|
/**
|
|
|
|
* @class BooleanField
|
|
|
|
* Represents a field with boolean values.
|
|
|
|
*/
|
2013-08-27 11:27:42 +00:00
|
|
|
class BooleanField : public Field
|
|
|
|
{
|
|
|
|
public:
|
2013-09-11 13:39:07 +00:00
|
|
|
/**
|
|
|
|
* Constructor.
|
|
|
|
* @param name the name of the field.
|
|
|
|
* @param dimension the dimension of the field.
|
|
|
|
* @param nbElements the number of elements.
|
|
|
|
* @param nbComponents the number of components.
|
|
|
|
*/
|
2013-08-27 15:56:27 +00:00
|
|
|
BooleanField(const std::string& name, const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents);
|
2013-08-27 11:27:42 +00:00
|
|
|
|
|
|
|
virtual const XAO::Type getType() { return XAO::BOOLEAN; }
|
|
|
|
|
2013-09-12 12:04:37 +00:00
|
|
|
virtual Step* addNewStep(const int& step) throw (XAO_Exception);
|
2013-09-11 13:39:07 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Adds a new step.
|
|
|
|
* @param step the number of the step.
|
|
|
|
* @return the newly created step.
|
|
|
|
*/
|
2013-09-12 12:04:37 +00:00
|
|
|
BooleanStep* addStep(const int& step) throw (XAO_Exception);
|
2013-09-11 13:39:07 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Adds a new step.
|
|
|
|
* @param step the number of the step.
|
|
|
|
* @param stamp the stamp of the step.
|
|
|
|
* @return the newly created step.
|
|
|
|
*/
|
2013-09-12 12:04:37 +00:00
|
|
|
BooleanStep* addStep(const int& step, const int& stamp)
|
|
|
|
throw (XAO_Exception);
|
2013-09-11 13:39:07 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the step of given index.
|
|
|
|
* @param index the index.
|
|
|
|
* @return the step for the given index.
|
|
|
|
*/
|
2013-09-12 12:04:37 +00:00
|
|
|
BooleanStep* getStep(const int& index) throw (XAO_Exception);
|
2013-08-27 11:27:42 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* __XAO_BOOLEANFIELD_HXX__ */
|