65 virtual int read (
void *buffer,
int size) = 0;
76 virtual char *
gets (
char *buffer,
int size) = 0;
119 virtual int write (
const void * buffer,
int size) = 0;
128 virtual bool puts (
const char *s);
131 inline bool puts (
const std::string &s)
133 return puts (s.c_str ());
165 const std::string &dfltPrefix = std::string(
""));
virtual bool puts(const char *s)
Write a string to the file (like fputs).
std::string getReadType() const
Return the method of reading being used.
~CoinFileIOBase()
Destructor.
bool puts(const std::string &s)
Convenience method: just a 'puts(s.c_str())'.
virtual int write(const void *buffer, int size)=0
Write a block of data to the file, similar to fwrite.
Compression
The compression method.
const char * getFileName() const
Return the name of the file used by this object.
static CoinFileOutput * create(const std::string &fileName, Compression compression)
Factory method, that creates a CoinFileOutput (more precisely a subclass of it) for the file specifie...
Abstract base class for file output classes.
Base class for FileIO classes.
virtual ~CoinFileOutput()
Destructor.
static bool compressionSupported(Compression compression)
Returns whether the specified compression method is supported (i.e.
CoinFileOutput(const std::string &fileName)
Constructor (don't use this, use the create method instead).