70 return this->
it->get();
76 std :: string nextKey;
79 (*temp)->giveRecordKeywordField(nextKey);
80 return keyword.compare( nextKey ) == 0;
92 std :: ofstream fout(fileName);
97 fout << rec->giveRecordAsString() <<
"\n";
std::vector< std::unique_ptr< InputRecord > > recordList
All record types will be appended to this list, no split in terms of InputRecordType is implemented y...
virtual bool peakNext(const std::string &keyword)
Peak in advance into the record list.
Class representing the abstraction for input data source.
void writeToFile(const char *fileName)
Writes all input records to file.
virtual InputRecord * giveInputRecord(InputRecordType, int recordId)
Returns input record corresponding to given InputRecordType value and its record_id.
virtual void finish()
Allows to detach all data connections.
std::vector< std::unique_ptr< InputRecord > >::iterator it
Keeps track of the current position in the list.
std::string description
Description line (second line in OOFEM input files).
InputRecordType
Determines the type of input record.
std::string outputFileName
Output file name (first line in OOFEM input files).
DynamicDataReader(std::string name)
Constructor.
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual ~DynamicDataReader()
void insertInputRecord(InputRecordType type, InputRecord *record)
Main purpose of this class it the possibility to add new input records in code.