FEDEM Model Database  R8.0
Source code of the FEDEM model database
Classes | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
FFlFEAttributeSpec Class Reference

#include <FFlFEAttributeSpec.H>

Classes

class  AttribType
 

Public Member Functions

void dump () const
 
bool addLegalAttribute (const std::string &name, bool required=true, bool allowMulti=false)
 Adds a legal attribute to the object. More...
 
bool multipleRefsAllowed (const std::string &name) const
 
const std::string & getAttributeName (unsigned char typeID) const
 
unsigned char getAttributeTypeID (const std::string &name) const
 

Static Public Member Functions

static bool isObsolete (const std::string &name)
 
static void initTypeID ()
 

Private Attributes

std::set< AttribType > myLegalAttributes
 

Member Function Documentation

◆ addLegalAttribute()

bool FFlFEAttributeSpec::addLegalAttribute ( const std::string &  name,
bool  required = true,
bool  allowMulti = false 
)

Adds a legal attribute to the object.

Parameters
[in]nameThe name of the attribute
[in]requiredIf true, the attribute is required in the object
[in]allowMultiIf true, multiple instances are allowed in the object

◆ dump()

void FFlFEAttributeSpec::dump ( ) const

◆ getAttributeName()

const std::string & FFlFEAttributeSpec::getAttributeName ( unsigned char  typeID) const

Returns the corresponding name to the input type.

◆ getAttributeTypeID()

unsigned char FFlFEAttributeSpec::getAttributeTypeID ( const std::string &  name) const

Returns the corresponding type ID to the input name.

◆ initTypeID()

static void FFlFEAttributeSpec::initTypeID ( )
inlinestatic

◆ isObsolete()

bool FFlFEAttributeSpec::isObsolete ( const std::string &  attr)
static

Checks if the specified attribute is obsolete and should be silently ignored.

◆ multipleRefsAllowed()

bool FFlFEAttributeSpec::multipleRefsAllowed ( const std::string &  name) const

Checks if multiple references are allowed for the specified attribute.

Member Data Documentation

◆ myLegalAttributes

std::set<AttribType> FFlFEAttributeSpec::myLegalAttributes
private

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