13 #ifndef FI_CURVE_ASC_FILE_H
14 #define FI_CURVE_ASC_FILE_H
39 virtual double getValue(
double,
int,
bool,
double,
double) {
return 0.0; }
41 int,
bool,
double,
double);
44 virtual void setValue(
double x,
double y);
Base class for external device functions.
ASCII file for curve plotting.
Definition: FiCurveASCFile.H:32
virtual void setPrecision(int type)
Sets the precision to be used when writing the device to file.
Definition: FiCurveASCFile.H:47
virtual void setValue(double x, double y)
Assigns a function value for a single-channel function.
Definition: FiCurveASCFile.C:144
virtual double getValue(double, int, bool, double, double)
Evaluates the function for a given x value.
Definition: FiCurveASCFile.H:39
virtual bool getValues(double, double, Doubles &x, Doubles &y, int, bool, double, double)
Evaluates the function at all points within specified interval.
Definition: FiCurveASCFile.C:169
FiCurveASCFile(const char *devicename=NULL)
Default constructor.
Definition: FiCurveASCFile.C:21
virtual bool setData(const Doubles &x, const Doubles &y)
Adds a complete set of x,y-pair values for a new channel.
Definition: FiCurveASCFile.C:151
int outputFormat
0: 4-digits, 1: 8 digits, 2: 16-digits
Definition: FiCurveASCFile.H:57
Doubles myYValues
Y-axis curve data values.
Definition: FiCurveASCFile.H:56
Doubles myXValues
X-axis curve data values.
Definition: FiCurveASCFile.H:55
virtual void getRawData(Doubles &x, Doubles &y, double, double, int)
Extracts all function data point values within specified interval.
Definition: FiCurveASCFile.C:162
virtual bool initialDeviceRead()
Reads the file content, or at least its meta data.
Definition: FiCurveASCFile.C:27
virtual size_t getValueCount() const
Returns the number of (x,y) pairs for this device.
Definition: FiCurveASCFile.H:37
virtual bool preliminaryDeviceWrite()
Writes the meta data for this device function to file.
Definition: FiCurveASCFile.H:52
virtual bool concludingDeviceWrite(bool)
Writes the content of this device function to file.
Definition: FiCurveASCFile.C:92
Base class for external device functions.
Definition: FiDeviceFunctionBase.H:28
std::vector< double > Doubles
Convenience type alias.
Definition: FiDeviceFunctionBase.H:37
character(len=40) type
Function type flag.
Definition: initiateFunctionTypeModule.f90:33