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

Go to the source code of this file.

Functions

Node::Type str2nodetype (const char *const s)
 

Function Documentation

Node::Type str2nodetype ( const char *const  s)

Definition at line 94 of file node.cc.

References Node::LASTNODETYPE, psReadNodesNodes, and Node::UNKNOWN.

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

95 {
96  for (int i = 0; i < Node::LASTNODETYPE; i++) {
97  if (strcasecmp(s, psReadNodesNodes[i]) == 0) {
98  return Node::Type(i);
99  }
100  }
101 
102  return Node::UNKNOWN;
103 }
const char * psReadNodesNodes[]
Definition: enums.cc:398
Type
Definition: node.h:71