MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Eu2PhiDCR Struct Reference
Inheritance diagram for Eu2PhiDCR:
Collaboration diagram for Eu2PhiDCR:

Public Member Functions

virtual TplDriveCaller< Vec3 > * Read (const DataManager *pDM, MBDynParser &HP)
 
- Public Member Functions inherited from TplDriveCallerRead< Vec3 >
virtual ~TplDriveCallerRead (void)
 

Detailed Description

Definition at line 112 of file module-eu2phi.cc.

Member Function Documentation

virtual TplDriveCaller<Vec3>* Eu2PhiDCR::Read ( const DataManager pDM,
MBDynParser HP 
)
inlinevirtual

Implements TplDriveCallerRead< Vec3 >.

Definition at line 114 of file module-eu2phi.cc.

References EULER_123, EULER_313, EULER_321, IncludeParser::GetLineData(), MBDynParser::GetTplDriveCaller(), HighParser::IsKeyWord(), MBDYN_EXCEPT_ARGS, and ReadOrientationDescription().

114  {
115  if (HP.IsKeyWord("help")) {
116  silent_cout(
117 "Eu2PhiWrap: converts a TplDriveCaller<Vec3> containing three Euler angles\n"
118 "into the corresponding Euler vector\n"
119 "\n"
120 "Syntax:\n"
121 " eu2phi ,\n"
122 " [ help , ]\n"
123 " [ format , { euler123 | euler313 | euler321 } , ]\n"
124 " (TplDriveCaller<Vec3>) <drive>\n");
125  }
126 
128 
129  if (HP.IsKeyWord("format")) {
131  switch (od) {
132  case EULER_123:
133  case EULER_313:
134  case EULER_321:
135  break;
136 
137  default:
138  silent_cerr("Eu2PhiWrap: unhandled format at line " << HP.GetLineData() << std::endl);
140  }
141  }
142 
143  return new Eu2PhiWrap(HP.GetTplDriveCaller<Vec3>(), od);
144  };
TplDriveCaller< T > * GetTplDriveCaller(void)
Definition: mbpar.cc:2112
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
Definition: matvec3.h:98
OrientationDescription
Definition: matvec3.h:1597
OrientationDescription ReadOrientationDescription(MBDynParser &HP)
Definition: dataman3.cc:2502
virtual bool IsKeyWord(const char *sKeyWord)
Definition: parser.cc:910
virtual HighParser::ErrOut GetLineData(void) const
Definition: parsinc.cc:697

Here is the call graph for this function:


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