te::xsd::Facet Class Reference

This class can be used to model a facet (a constraint in the range of values). More...

#include <Facet.h>

Public Member Functions

 Facet (FacetType fType, const std::string &value)
 Constructor. More...
 
 Facet (const Facet &rhs)
 Copy constructor. More...
 
const std::string & getName () const
 It returns the facet type name. More...
 
FacetType getType () const
 It returns the facet type code. More...
 
const std::string & getValue ()
 It returns the facet value. More...
 
Facetoperator= (const Facet &rhs)
 Assignment operator. More...
 
 ~Facet ()
 Destructor. More...
 

Private Attributes

FacetType m_type
 The facet type. More...
 
std::string m_value
 The facet associated value. More...
 

Static Private Attributes

static std::string m_typeNames [12]
 The list of names for available facet types. More...
 

Detailed Description

This class can be used to model a facet (a constraint in the range of values).

Definition at line 45 of file Facet.h.

Constructor & Destructor Documentation

te::xsd::Facet::Facet ( FacetType  fType,
const std::string &  value 
)

Constructor.

Parameters
fTypeFacet type.
valueFacet value.
te::xsd::Facet::Facet ( const Facet rhs)

Copy constructor.

Parameters
rhsRight-hand-side object.
te::xsd::Facet::~Facet ( )

Destructor.

Member Function Documentation

const std::string& te::xsd::Facet::getName ( ) const

It returns the facet type name.

Returns
The facet type name.
FacetType te::xsd::Facet::getType ( ) const

It returns the facet type code.

Returns
The facet type code.
const std::string& te::xsd::Facet::getValue ( )

It returns the facet value.

Returns
The facet value.
Facet& te::xsd::Facet::operator= ( const Facet rhs)

Assignment operator.

Parameters
rhsRight-hand-side object.
Returns
A reference to this object.

Member Data Documentation

FacetType te::xsd::Facet::m_type
private

The facet type.

Definition at line 103 of file Facet.h.

std::string te::xsd::Facet::m_typeNames[12]
staticprivate

The list of names for available facet types.

Definition at line 105 of file Facet.h.

std::string te::xsd::Facet::m_value
private

The facet associated value.

Definition at line 104 of file Facet.h.


The documentation for this class was generated from the following file: