MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
elem.cc File Reference
#include "mbconfig.h"
#include "dataman.h"
#include "elem.h"
#include "gravity.h"
#include "aerodyn.h"
Include dependency graph for elem.cc:

Go to the source code of this file.

Classes

struct  ElemWordSetType
 

Typedefs

typedef std::map< std::string,
ElemRead *, ltstrcase
ElemFuncMapType
 

Functions

Elem::Type str2elemtype (const char *const s)
 
bool SetElem (const char *name, ElemRead *rf)
 

Variables

static ElemFuncMapType ElemFuncMap
 
static ElemWordSetType ElemWordSet
 

Typedef Documentation

typedef std::map<std::string, ElemRead *, ltstrcase> ElemFuncMapType

Definition at line 173 of file elem.cc.

Function Documentation

bool SetElem ( const char *  name,
ElemRead rf 
)

Definition at line 191 of file elem.cc.

References ElemFuncMap.

192 {
193  pedantic_cout("registering element \"" << name << "\""
194  << std::endl );
195  return ElemFuncMap.insert(ElemFuncMapType::value_type(name, rf)).second;
196 }
static ElemFuncMapType ElemFuncMap
Definition: elem.cc:174
Elem::Type str2elemtype ( const char *const  s)

Definition at line 159 of file elem.cc.

References Elem::LASTELEMTYPE, psReadElemsElems, and Elem::UNKNOWN.

Referenced by ModelNameSpace::FindFunc(), ModelNameSpace::GetFunc(), and ElemPrivPlugIn::ReadSE().

160 {
161  for (int i = 0; i < Elem::LASTELEMTYPE; i++) {
162  if (strcasecmp(s, psReadElemsElems[i]) == 0) {
163  return Elem::Type(i);
164  }
165  }
166 
167  return Elem::UNKNOWN;
168 }
Type
Definition: elem.h:91
const char * psReadElemsElems[]
Definition: enums.cc:79

Variable Documentation

ElemFuncMapType ElemFuncMap
static

Definition at line 174 of file elem.cc.

Referenced by ElemWordSetType::IsWord(), and SetElem().

ElemWordSetType ElemWordSet
static

Definition at line 187 of file elem.cc.