 |
PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
|
Go to the documentation of this file.
19 bool open(
const std::string & fileName,
const std::string & mode =
"r");
30 bool write(
const T & value);
33 bool write(
const T * tabValue,
size_t nbValue);
36 bool write(
const T * tabValue,
size_t nbRow,
size_t nbCol,
size_t padding = 0lu);
42 bool read(T * tabValue,
size_t nbValue);
45 bool read(T * tabValue,
size_t nbRow,
size_t nbCol,
size_t padding = 0lu);
PStream()
Default constructor of PStream.
virtual ~PStream()
Destructor of PStream.
PStream & operator>>(T &value)
Flux operator for stream.
PStream & operator<<(const T &value)
Flux operator for stream.
void close()
Close the stream.
bool write(const T &value)
Write a value into the stream.
FILE * p_fp
Pointer to the main stream.
void initialisationPStream()
Initialisation function of the class PStream.
bool read(T &value)
Read a value from the stream.
bool open(const std::string &fileName, const std::string &mode="r")
Open the current stream.
bool isOpen() const
Say if the stream is opened.