MBDyn-1.7.3
|
#include <parsinc.h>
Classes | |
struct | MyInput |
Public Member Functions | |
IncludeParser (MathParser &MP, InputStream &streamIn, const char *initial_file="initial file") | |
virtual | ~IncludeParser (void) |
virtual void | Close (void) |
virtual const char * | GetFileName (enum Delims Del=DEFAULTDELIM) |
virtual HighParser::ErrOut | GetLineData (void) const |
Public Member Functions inherited from HighParser | |
HighParser (MathParser &MP, InputStream &streamIn) | |
virtual | ~HighParser (void) |
virtual const KeyTable * | PutKeyTable (const KeyTable &KT) |
virtual int | GetLineNumber (void) const |
virtual MathParser & | GetMathParser (void) |
bool | IsDescription (void) const |
Token | GotDescription (void) |
int | GetDescription (void) |
virtual void | ExpectDescription (void) |
virtual void | ExpectArg (void) |
virtual bool | IsKeyWord (const char *sKeyWord) |
virtual int | IsKeyWord (void) |
virtual bool | IsArg (void) |
virtual bool | IsStringWithDelims (enum Delims Del=DEFAULTDELIM) |
virtual const char * | IsWord (const HighParser::WordSet &ws) |
virtual void | PutBackSemicolon (void) |
virtual bool | GetBool (bool bDefval=false) |
virtual bool | GetYesNo (bool &bRet) |
virtual bool | GetYesNoOrBool (bool bDefval=false) |
virtual integer | GetInt (integer iDefval=0) |
template<class Range > | |
integer | GetInt (integer iDefval, Range r) |
virtual doublereal | GetReal (const doublereal &dDefval=0.0) |
template<class Range > | |
doublereal | GetReal (const doublereal &dDefval, Range r) |
virtual std::string | GetString (const std::string &sDefVal) |
virtual TypedValue | GetValue (const TypedValue &v) |
template<class Range > | |
TypedValue | GetValue (const TypedValue &v, Range r) |
virtual mbsleep_t | GetTimeout (const mbsleep_t &DefVal) |
virtual int | GetWord (void) |
virtual const char * | GetString (unsigned flags=HighParser::NONE) |
virtual const char * | GetStringWithDelims (enum Delims Del=DEFAULTDELIM, bool escape=true) |
template<class Range > | |
integer | GetInt (int iDefVal, Range range) |
Protected Member Functions | |
flag | fCheckStack (void) |
bool | Include_int (void) |
virtual void | Eof (void) |
Protected Member Functions inherited from HighParser | |
virtual HighParser::Token | FirstToken (void) |
virtual void | NextToken (const char *sFuncName) |
int | iGetDescription_int (const char *const s) |
virtual void | SetDelims (enum Delims Del, char &cLdelim, char &cRdelim) const |
int | ParseWord (unsigned flags=HighParser::NONE) |
void | PutbackWord (void) |
Protected Attributes | |
std::stack< MyInput * > | myinput |
char * | sCurrPath |
char * | sInitialPath |
char * | sCurrFile |
Protected Attributes inherited from HighParser | |
LowParser | LowP |
InputStream * | pIn |
std::ifstream * | pf |
char | sStringBuf [iDefaultBufSize] |
char | sStringBufWithSpaces [iDefaultBufSize] |
MathParser & | MathP |
const KeyTable * | KeyT |
LowParser::Token | CurrLowToken |
Token | CurrToken |
Friends | |
struct | IncludeDR |
Additional Inherited Members | |
Public Types inherited from HighParser | |
enum | Token { UNKNOWN = -1, DESCRIPTION, FIRSTARG, ARG, LASTARG, NOARGS, WORD, NUMBER, STRING, ENDOFFILE, LASTITEM } |
enum | Delims { UNKNOWNDELIM = -1, PLAINBRACKETS, SQUAREBRACKETS, CURLYBRACKETS, SINGLEQUOTE, DOUBLEQUOTE, DEFAULTDELIM, LASTDELIM } |
enum | { NONE = 0x00U, EATSPACES = 0x01U, ESCAPE = 0x02U, LOWER = 0x04U, UPPER = 0x08U } |
Public Attributes inherited from HighParser | |
const char | ESCAPE_CHAR |
IncludeParser::IncludeParser | ( | MathParser & | MP, |
InputStream & | streamIn, | ||
const char * | initial_file = "initial file" |
||
) |
Definition at line 120 of file parsinc.cc.
References ASSERT, DEBUGCOUT, InitDescData(), MBDYN_EXCEPT_ARGS, NO_OP, PATH_MAX, SAFESTRDUP, sCurrFile, sCurrPath, and sInitialPath.
|
virtual |
Definition at line 149 of file parsinc.cc.
References Close().
|
virtual |
Reimplemented from HighParser.
Definition at line 155 of file parsinc.cc.
References ASSERT, DEBUGCOUT, MBDYN_EXCEPT_ARGS, myinput, HighParser::pf, IncludeParser::MyInput::pfile, HighParser::pIn, IncludeParser::MyInput::pis, SAFEDELETE, SAFEDELETEARR, sCurrFile, and sCurrPath.
Referenced by InverseSolver::Prepare(), Solver::Prepare(), and ~IncludeParser().
|
protectedvirtual |
Reimplemented from HighParser.
Definition at line 425 of file parsinc.cc.
References fCheckStack(), and MBDYN_EXCEPT_ARGS.
|
protected |
Definition at line 225 of file parsinc.cc.
References ASSERT, DEBUGCOUT, MBDYN_EXCEPT_ARGS, myinput, HighParser::pf, IncludeParser::MyInput::pfile, HighParser::pIn, IncludeParser::MyInput::pis, SAFEDELETE, SAFEDELETEARR, sCurrFile, and sCurrPath.
Referenced by Eof().
|
virtual |
Definition at line 673 of file parsinc.cc.
References HighParser::GetStringWithDelims(), iDefaultBufSize, resolve_filename(), SAFEDELETEARR, and HighParser::sStringBuf.
Referenced by AeroDynModule::AeroDynModule(), MBDynParser::C81Data_int(), LoadableElem::GetCalls(), SocketStreamOutputElemCreator::getSocketStreamOutParam(), Include_int(), module_init(), MBDynParser::ModuleLoad_int(), ChDirDR::Read(), VariableStepDR::Read(), FixedStepDR::Read(), JoystickDR::Read(), AnnElasticCLR< T, Tder >::Read(), AnnViscoElasticCLR< T, Tder >::Read(), GRAALLDamperCLR::Read(), ReadAerodynamicModal(), DataManager::ReadControl(), ReadElectric(), ReadExtFileHandler(), ReadExtFileHandlerEDGE(), ReadExtSocketHandler(), ReadGenericAerodynamicForce(), ReadModal(), ReadRTAISolver(), ReadSparseMappingMatrix(), ReadStreamDriveEcho(), ReadStreamOutEcho(), ReadStructExtForce(), and ReadStructMappingExtForce().
|
virtual |
Reimplemented from HighParser.
Definition at line 697 of file parsinc.cc.
References HighParser::GetLineNumber(), HighParser::ErrOut::iLineNumber, sCurrFile, sCurrPath, HighParser::ErrOut::sFileName, sInitialPath, and HighParser::ErrOut::sPathName.
Referenced by AeroDynModule::AeroDynModule(), asynchronous_machine::asynchronous_machine(), MBDynParser::C81Data_int(), MBDynParser::ConstitutiveLaw_int(), SocketStreamOutputElemCreator::createSocketStreamOutElem(), DataManager::DataManager(), MBDynParser::DriveCaller_int(), MBDynParser::GetC81Data(), LoadableElem::GetCalls(), MBDynParser::GetConstLaw1D(), MBDynParser::GetConstLaw3D(), MBDynParser::GetConstLaw6D(), GetDofOrder(), MBDynParser::GetDriveCaller(), MBDynParser::GetHydraulicFluid(), MBDynParser::GetMatAbs(), MBDynParser::GetMatR2vec(), MBDynParser::GetMatRel(), MBDynParser::GetOmeAbs(), MBDynParser::GetOmeRel(), MBDynParser::GetPosAbs(), MBDynParser::GetPosRel(), MBDynParser::GetRef(), MBDynParser::GetRotAbs(), MBDynParser::GetRotRel(), SocketStreamOutputElemCreator::getSocketStreamOutParam(), MBDynParser::GetTplDriveCaller(), MBDynParser::GetUnitVecAbs(), MBDynParser::GetUnitVecRel(), MBDynParser::GetVecAbs(), MBDynParser::GetVecRel(), MBDynParser::GetVelAbs(), MBDynParser::GetVelRel(), MBDynParser::HydraulicFluid_int(), HydrodynamicPlainBearing::HydrodynamicPlainBearing(), Include_int(), InlineFriction::InlineFriction(), LoadIncForce::LoadIncForce(), LoadIncNorm::LoadIncNorm(), module_init(), MBDynParser::ModuleLoad_int(), ModuleNonsmoothNode::ModuleNonsmoothNode(), DriveCallerRead::NeedDM(), ParseFriction(), ParseScalarFunction(), ParseShapeCoefficient(), ParseUserDefinedElem(), FlightGearStreamOutputReader::Read(), FlightGearFileDriveReader::Read(), ZeroTDCR< T >::Read(), FlightGearFileDriveCallerTypeReader::Read(), VariableStepDR::Read(), FixedStepDR::Read(), ScalarFuncGR::Read(), MultiStepDriveDCR::Read(), DummyCLR< T, Tder >::Read(), SwitchDriveDCR::Read(), NodeDistDCR::Read(), GiNaCDCR::Read(), HydraulicDamperCLR::Read(), StreamDR::Read(), PowerLawGR::Read(), MinMaxDriveDCR::Read(), Eu2PhiDCR::Read(), LogarithmicGR::Read(), HuntCrossleyCLR::Read(), TDCLWR< T, Tder >::Read(), CLArray1DR::Read(), MotionContentTypeReader::Read(), ValuesContentTypeReader::Read(), CLArray3DR::Read(), ContContactCLR::Read(), CLArray6DR::Read(), MusclePennestriCLR::Read(), FactorTSR::Read(), LinearElasticCLR< T, Tder >::Read(), NLSFViscoElasticCLR< T, Tder, Typ >::Read(), LoadableElemRead::Read(), NLPViscoElasticCLR< T, Tder, Typ >::Read(), LogSFR::Read(), AnnElasticCLR< T, Tder >::Read(), AnnViscoElasticCLR< T, Tder >::Read(), InverseSquareElasticCLR::Read(), ExpSFR::Read(), LogElasticCLR< T, Tder >::Read(), DoubleLinearElasticCLR< T, Tder >::Read(), IsotropicHardeningCLR< T, Tder >::Read(), ContContact3DCLR::Read(), ContactElasticCLR< T, Tder >::Read(), SymbolicCLR< T, Tder >::Read(), ChebychevSFR::Read(), LinearViscousCLR< T, Tder >::Read(), LinearViscoElasticCLR< T, Tder >::Read(), DoubleLinearViscoElasticCLR< T, Tder >::Read(), TurbulentViscoElasticCLR< T, Tder >::Read(), LinearBiStopCLR< T, Tder >::Read(), ScalarFunctionIsotropicCLR< T, Tder >::Read(), ScalarFunctionOrthotropicCLR< T, Tder >::Read(), DoubleStepDCR::Read(), RampDCR::Read(), DoubleRampDCR::Read(), FourierSeriesDCR::Read(), PiecewiseLinearDCR::Read(), DofDCR::Read(), SimulationEntityDCR::Read(), ElementDCR::Read(), NodeDCR::Read(), FileDCR::Read(), PeriodicDCR::Read(), PostponedDCR::Read(), ReadAeroData(), ReadAerodynamicBeam(), ReadAerodynamicBeam2(), ReadAerodynamicBody(), ReadAerodynamicCustomOutput(), ReadAerodynamicModal(), ReadAirProperties(), ReadAuthMethod(), ReadBeam(), ReadBeam2(), ReadBeamCustomOutput(), ReadBody(), ReadBufferStreamDrive(), ReadBufferStreamElem(), ReadBulk(), ReadC81MultipleAeroData(), ReadCL1D(), ReadCL3D(), ReadCL6D(), DataManager::ReadControl(), InverseSolver::ReadData(), Solver::ReadData(), ReadDC1D(), ReadDC3D(), ReadDC3x3D(), ReadDC6D(), ReadDC6x6D(), ReadDriveCallerData(), ReadDriveData(), DataManager::ReadDrivers(), ReadElectric(), DataManager::ReadElem(), DataManager::ReadElems(), ReadExtFileHandler(), ReadExtFileHandlerEDGE(), ReadExtFileParams(), ReadExtForce(), ReadExtSocketHandler(), ReadFF(), FlightGearStreamOutputReader::ReadFlightGearScalarValues(), ReadForce(), ReadGenel(), ReadGenericAerodynamicForce(), ReadGravity(), ReadGustData(), ReadHBeam(), ReadHydraulicElem(), ReadHydraulicFluid(), ReadInducedVelocity(), ReadJoint(), ReadJointRegularization(), ReadMembraneConstLaw(), ReadModal(), ReadModalExtForce(), ReadModalForce(), ReadModalMappingExtForce(), DataManager::ReadNode(), DataManager::ReadNodes(), DataManager::ReadOneElem(), ReadOptionalOrientationDescription(), ReadOrientationDescription(), DriveCallerRead::ReadOutput(), ReadOutputElem(), ReadResSet(), ReadResSets(), ReadRotor(), ReadRotorData(), ReadRTAISolver(), ReadRTMBDynInDrive(), ReadRTParams(), ReadRTSolver(), DataManager::ReadScalarAlgebraicNode(), ReadScalarDof(), ReadScalarValue(), ReadScalarValues(), ReadShape(), ReadShellConstLaw(), ReadSparseMappingMatrix(), ReadStreamContent(), ReadStreamContentModifier(), ReadStreamDriveEcho(), ReadStreamDriveModifier(), ReadStreamOutEcho(), ReadStructExtForce(), ReadStructMappingExtForce(), ReadStructNode(), ReadStructuralForce(), ReadThermal(), ReadUniform(), ReadUnsteadyFlag(), ReadVariableBody(), MBDynParser::Reference_int(), RunMBDyn(), MBDynParser::ScalarFunction_int(), ShockAbsorberConstitutiveLaw< doublereal, doublereal >::ShockAbsorberConstitutiveLaw(), MBDynParser::TplDriveCaller_int(), and Wheel2::Wheel2().
|
protected |
Definition at line 281 of file parsinc.cc.
References buf, c, HighParser::CurrToken, DEBUGCERR, DEBUGCOUT, HighParser::DESCRIPTION, DIR_SEP, GetFileName(), GetLineData(), HighParser::IsArg(), MBDYN_EXCEPT_ARGS, myinput, PATH_MAX, HighParser::pf, HighParser::pIn, SAFEDELETEARR, SAFENEWWITHCONSTRUCTOR, SAFESTRDUP, sCurrFile, and sCurrPath.
Referenced by IncludeDR::Read().
|
protected |
Definition at line 143 of file parsinc.h.
Referenced by Close(), fCheckStack(), and Include_int().
|
protected |
Definition at line 146 of file parsinc.h.
Referenced by Close(), fCheckStack(), GetLineData(), Include_int(), and IncludeParser().
|
protected |
Definition at line 144 of file parsinc.h.
Referenced by Close(), fCheckStack(), GetLineData(), Include_int(), and IncludeParser().
|
protected |
Definition at line 145 of file parsinc.h.
Referenced by GetLineData(), and IncludeParser().