MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
AnnElasticCLR< T, Tder > Struct Template Reference

#include <constltp_ann.h>

Inheritance diagram for AnnElasticCLR< T, Tder >:
Collaboration diagram for AnnElasticCLR< T, Tder >:

Public Member Functions

virtual ConstitutiveLaw< T,
Tder > * 
Read (const DataManager *pDM, MBDynParser &HP, ConstLawType::Type &CLType)
 
- Public Member Functions inherited from ConstitutiveLawRead< T, Tder >
virtual ~ConstitutiveLawRead (void)
 

Detailed Description

template<class T, class Tder>
struct AnnElasticCLR< T, Tder >

Definition at line 365 of file constltp_ann.h.

Member Function Documentation

template<class T , class Tder >
virtual ConstitutiveLaw<T, Tder>* AnnElasticCLR< T, Tder >::Read ( const DataManager pDM,
MBDynParser HP,
ConstLawType::Type CLType 
)
inlinevirtual

Implements ConstitutiveLawRead< T, Tder >.

Definition at line 367 of file constltp_ann.h.

References ConstLawType::ELASTIC, IncludeParser::GetFileName(), IncludeParser::GetLineData(), HighParser::GetYesNoOrBool(), HighParser::IsKeyWord(), MBDYN_EXCEPT_ARGS, and SAFENEWWITHCONSTRUCTOR.

367  {
368  ConstitutiveLaw<T, Tder>* pCL = 0;
369 
370  CLType = ConstLawType::ELASTIC;
371 
372  bool bUnit(false);
373  if (HP.IsKeyWord("unit" "input")) {
374  bUnit = HP.GetYesNoOrBool();
375  }
376 
377  const char *s = HP.GetFileName();
378  if (s == 0) {
379  silent_cerr("AnnElasticCLR: "
380  "unable to get ann file name "
381  "at line " << HP.GetLineData() << std::endl);
383  }
384 
386  SAFENEWWITHCONSTRUCTOR(pCL, L, L(s, bUnit));
387 
388  return pCL;
389  };
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
virtual const char * GetFileName(enum Delims Del=DEFAULTDELIM)
Definition: parsinc.cc:673
virtual bool GetYesNoOrBool(bool bDefval=false)
Definition: parser.cc:1038
virtual bool IsKeyWord(const char *sKeyWord)
Definition: parser.cc:910
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
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: