ClassesClasses | | Operators

read_funct_1dread_funct_1dReadFunct1dReadFunct1d (Operator)

Name

read_funct_1dread_funct_1dReadFunct1dReadFunct1d — Read a function from a file.

Signature

read_funct_1d( : : FileName : Function)

Herror read_funct_1d(const char* FileName, double* Function)

Herror T_read_funct_1d(const Htuple FileName, Htuple* Function)

void ReadFunct1d(const HTuple& FileName, HTuple* Function)

void HFunction1D::ReadFunct1d(const HString& FileName)

void HFunction1D::ReadFunct1d(const char* FileName)

static void HOperatorSet.ReadFunct1d(HTuple fileName, out HTuple function)

void HFunction1D.ReadFunct1d(string fileName)

Description

The operator read_funct_1dread_funct_1dReadFunct1dReadFunct1dReadFunct1d reads the contents of FileNameFileNameFileNameFileNamefileName and converts it into the function FunctionFunctionFunctionFunctionfunction. The file has be generated by write_funct_1dwrite_funct_1dWriteFunct1dWriteFunct1dWriteFunct1d.

Execution Information

Parameters

FileNameFileNameFileNameFileNamefileName (input_control)  filename.read HTupleHTupleHtuple (string) (string) (HString) (char*)

Name of the file to be read.

FunctionFunctionFunctionFunctionfunction (output_control)  function_1d HFunction1D, HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Function from the file.

Result

If the parameters are correct the operator read_funct_1dread_funct_1dReadFunct1dReadFunct1dReadFunct1d returns the value 2 (H_MSG_TRUE). Otherwise an exception is raised.

Alternatives

fread_stringfread_stringFreadStringFreadStringFreadString, read_tupleread_tupleReadTupleReadTupleReadTuple

See also

write_funct_1dwrite_funct_1dWriteFunct1dWriteFunct1dWriteFunct1d, write_imagewrite_imageWriteImageWriteImageWriteImage, write_regionwrite_regionWriteRegionWriteRegionWriteRegion, open_fileopen_fileOpenFileOpenFileOpenFile

Module

Foundation


ClassesClasses | | Operators