Main Page   Class Hierarchy   Compound List   Compound Members  

SCOREC_Attribute::DoubleValuedToFromFile Class Reference

#include <DoubleValuedToFromFile.h>

List of all members.

Static Public Methods

AttributeBasecreate (std::vector< std::string > &v)
 This static function is being called by the AttributeFactory to create attributes. The information needed, as read from a file, is given in the vector of strings. The vector contains exactly the information that was written by createOutput.

void createOutput (std::vector< std::string > &,const AttributeBase *)
 This function is responsible for converting the output for the attribute passed in into a set of strings to be stored in the vector.


Static Public Attributes

std::string ID
 This is the type identifier needed to construct the object from the Attribute Factory. It is important that this identifier is unique with respect to all types that are being created from the Factory.


Detailed Description

A class that writes out / reads in a "double-valued" attribute to/from file. A double-valued attribute is an attribute which contains values that can be evaluated to a double. E.g. it could store the entites of a vector or tensor, some of them could be expressions. This class takes complete control over the output and the input. For output it receives the attribute and an (empty) vector of strings to create the output. The class will then convert the attribute into a set of strings stored in the vector passed in. For input purposes the class receives a vector of strings containing all the attribute information in the same way as it was written out. The class will then create the correct attribute based on that information.


The documentation for this class was generated from the following files:
Generated at Mon Jul 23 10:23:25 2001 for SCOREC_UnitSystem by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001