This reads plain text files.
More...
#include <CoinFileIO.hpp>
|
| | CoinPlainFileInput (const std::string &fileName) |
| |
| | CoinPlainFileInput (FILE *fp) |
| | When already opened. More...
|
| |
| virtual | ~CoinPlainFileInput () |
| |
| virtual int | read (void *buffer, int size) |
| | Read a block of data from the file, similar to fread. More...
|
| |
| virtual char * | gets (char *buffer, int size) |
| | Reads up to (size-1) characters an stores them into the buffer, similar to fgets. More...
|
| |
| | CoinPlainFileInput (const std::string &fileName) |
| |
| | CoinPlainFileInput (FILE *fp) |
| | When already opened. More...
|
| |
| virtual | ~CoinPlainFileInput () |
| |
| virtual int | read (void *buffer, int size) |
| | Read a block of data from the file, similar to fread. More...
|
| |
| virtual char * | gets (char *buffer, int size) |
| | Reads up to (size-1) characters an stores them into the buffer, similar to fgets. More...
|
| |
| | CoinFileInput (const std::string &fileName) |
| | Constructor (don't use this, use the create method instead). More...
|
| |
| virtual | ~CoinFileInput () |
| | Destructor. More...
|
| |
| | CoinFileInput (const std::string &fileName) |
| | Constructor (don't use this, use the create method instead). More...
|
| |
| virtual | ~CoinFileInput () |
| | Destructor. More...
|
| |
| | CoinFileIOBase (const std::string &fileName) |
| | Constructor. More...
|
| |
| | ~CoinFileIOBase () |
| | Destructor. More...
|
| |
| const char * | getFileName () const |
| | Return the name of the file used by this object. More...
|
| |
| std::string | getReadType () const |
| | Return the method of reading being used. More...
|
| |
| | CoinFileIOBase (const std::string &fileName) |
| | Constructor. More...
|
| |
| | ~CoinFileIOBase () |
| | Destructor. More...
|
| |
| const char * | getFileName () const |
| | Return the name of the file used by this object. More...
|
| |
| std::string | getReadType () const |
| | Return the method of reading being used. More...
|
| |
This reads plain text files.
Definition at line 82 of file CoinFileIO.hpp.
◆ CoinPlainFileInput() [1/4]
| CoinPlainFileInput::CoinPlainFileInput |
( |
const std::string & |
fileName | ) |
|
◆ CoinPlainFileInput() [2/4]
| CoinPlainFileInput::CoinPlainFileInput |
( |
FILE * |
fp | ) |
|
◆ ~CoinPlainFileInput() [1/2]
| virtual CoinPlainFileInput::~CoinPlainFileInput |
( |
| ) |
|
|
virtual |
◆ CoinPlainFileInput() [3/4]
| CoinPlainFileInput::CoinPlainFileInput |
( |
const std::string & |
fileName | ) |
|
◆ CoinPlainFileInput() [4/4]
| CoinPlainFileInput::CoinPlainFileInput |
( |
FILE * |
fp | ) |
|
◆ ~CoinPlainFileInput() [2/2]
| virtual CoinPlainFileInput::~CoinPlainFileInput |
( |
| ) |
|
|
virtual |
◆ read() [1/2]
| virtual int CoinPlainFileInput::read |
( |
void * |
buffer, |
|
|
int |
size |
|
) |
| |
|
virtual |
Read a block of data from the file, similar to fread.
- Parameters
-
| buffer | Address of a buffer to store the data into. |
| size | Number of bytes to read (buffer should be large enough). |
- Returns
- Number of bytes read.
Implements CoinFileInput.
◆ gets() [1/2]
| virtual char* CoinPlainFileInput::gets |
( |
char * |
buffer, |
|
|
int |
size |
|
) |
| |
|
virtual |
Reads up to (size-1) characters an stores them into the buffer, similar to fgets.
Reading ends, when EOF or a newline occurs or (size-1) characters have been read. The resulting string is terminated with '\0'. If reading ends due to an encoutered newline, the '
' is put into the buffer, before the '\0' is appended.
- Parameters
-
| buffer | The buffer to put the string into. |
| size | The size of the buffer in characters. |
- Returns
- buffer on success, or 0 if no characters have been read.
Implements CoinFileInput.
◆ read() [2/2]
| virtual int CoinPlainFileInput::read |
( |
void * |
buffer, |
|
|
int |
size |
|
) |
| |
|
virtual |
Read a block of data from the file, similar to fread.
- Parameters
-
| buffer | Address of a buffer to store the data into. |
| size | Number of bytes to read (buffer should be large enough). |
- Returns
- Number of bytes read.
Implements CoinFileInput.
◆ gets() [2/2]
| virtual char* CoinPlainFileInput::gets |
( |
char * |
buffer, |
|
|
int |
size |
|
) |
| |
|
virtual |
Reads up to (size-1) characters an stores them into the buffer, similar to fgets.
Reading ends, when EOF or a newline occurs or (size-1) characters have been read. The resulting string is terminated with '\0'. If reading ends due to an encoutered newline, the '
' is put into the buffer, before the '\0' is appended.
- Parameters
-
| buffer | The buffer to put the string into. |
| size | The size of the buffer in characters. |
- Returns
- buffer on success, or 0 if no characters have been read.
Implements CoinFileInput.
◆ f_
| FILE * CoinPlainFileInput::f_ |
|
private |
The documentation for this class was generated from the following file: