Go to the documentation of this file.
36 " repeated name in the list of shape names: " <<
shapeNames_;
51 shapeNames_ = getVal<wordVector>(
"names");
52 numShapes_ = shapeNames_.size();
77 if( !readFromDictionary1() )
83 if( !createHashNames())
95 if( !dict.
add(
"names", shapeNames_) )
98 " Error in writing names to dictionary "<< dict.
globalName()<<
endl;
107 dictionary newDict(fileDictionary::dictionary::name(),
true);
109 if( !writeToDict(newDict) )
114 if( !newDict.
write(os) )
wordHashMap< uint32 > hashNames_
#define fatalExit
Fatal exit.
baseShapeNames(const word &fileName, repository *owner)
Vector< size_t > hashes_
hash for names
virtual word globalName() const
global name of entry, separated with dots
bool add(const word &keyword, const float &v)
add a float dataEntry
iOstream & endl(iOstream &os)
Add newline and flush stream.
typename wordHashMap< uint32 >::hasher hasher
#define fatalErrorInFunction
Report a fatal error and function name and exit the application.
bool readFromDictionary1()
bool write(iOstream &os) const override
write to stream
virtual const word & name() const
Return the name of the stream.
wordVector shapeNames_
list of shape names
bool write(iOstream &os) const override
write to stream
Interface class for any output stream.
virtual bool writeToDict(dictionary &dict) const
Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...