oaTermAttrType Class Reference

Inheritance diagram for oaTermAttrType:

oaAttrType


Public Methods

 oaTermAttrType (oaTermAttrTypeEnum valueIn)
 oaTermAttrType (const oaString &name)
 oaTermAttrType (oaAttrType attr)
virtual const oaStringgetName () const
oaTermAttrTypeEnum getValue () const

Detailed Description

The oaTermAttrType class encapsulates the enumerated values that represent the different attributes of an oaTerm object.

enum oaTermAttrTypeEnum
 

Enumeration values:
oacNameTermAttrType  "name"
oacHasPinsTermAttrType  "hasPins"
oacNumBitsTermAttrType  "numBits"


Constructor & Destructor Documentation

oaTermAttrType::oaTermAttrType oaTermAttrTypeEnum    valueIn
 

This function constructs an instance of an oaTermAttrType class using the specified oaTermAttrTypeEnum value.

oaTermAttrType::oaTermAttrType const oaString &    name
 

This function constructs an instance of an oaTermAttrType class using the oaTermAttrTypeEnum associated with the specified string name. This name must be defined in the legal set of names associated with oaTermAttrTypeEnum.

Exceptions:
oacInvalidTermAttrTypeName 

oaTermAttrType::oaTermAttrType oaAttrType    attr
 

This function constructs an oaTermAttrType class using the oaAttrType as input to support the class down-cast.

Parameters:
attr The attribute value to use


Member Function Documentation

const oaString & oaTermAttrType::getName   const [virtual]
 

This function returns the name string associated with the encapsulated oaTermAttrTypeEnum object.

oaTermAttrTypeEnum oaTermAttrType::getValue   const [inline]
 

This operator casts this oaTermAttrType object into the corresponding oaTermAttrTypeEnum value.


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

Return to top of page