Go to the documentation of this file.
42 if ( ir->hasChild( ift, name, optional ) )
return &( this->
giveInputRecord( irType, 1 ) );
48 return GroupRecords( *
this, name, irType, ir->giveGroupCount( ift, name, optional ) );
54 if(count>=0 && numRequired>=0 && count!=numRequired)
OOFEM_ERROR(
"Mismatch in %s: %d records of type '%s' required, %d found.",
giveReferenceName().c_str(),numRequired,name.c_str(),count);
55 return GroupRecords(*
this,name,irType,numRequired>=0?numRequired:count);
63 if ( !this->
group.empty() ) {
72 if(
index==0 &&
size_==0 && !this->
group.empty() &&
dr.hasGroup(this->group)){ dr.enterGroup(this->group); dr.leaveGroup(this->group); }
Iterator(DataReader &dr_, const std::string &group_, InputRecordType irType_, int size_, int index_)
Internal range-like class, return type for giveGroupRecords methods.
GroupRecords(DataReader &dr_, const std::string &group_, InputRecordType irType_, int size)
virtual std::string giveReferenceName() const =0
Gives the reference file name (e.g. file name).
InputRecordType
Determines the type of input record.
virtual InputRecord & giveInputRecord(InputRecordType irType, int recordId)=0
GroupRecords giveGroupRecords(const std::shared_ptr< InputRecord > &ir, InputFieldType ift, const std::string &name, InputRecordType irType, bool optional)
virtual int giveGroupCount(const std::string &name)
InputRecord * giveChildRecord(const std::shared_ptr< InputRecord > &ir, InputFieldType ift, const std::string &name, InputRecordType irType, bool optional)
Return pointer to subrecord of given type (must be exactly one); if not present, returns nullptr.
const char * InputFieldType
Identifier of fields in input records.
This page is part of the
OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak
Bořek Patzák
Project e-mail:
oofem@fsv.cvut.cz
Generated at for OOFEM by
doxygen
1.15.0 written by Dimitri van Heesch,
© 1997-2011