30#ifndef FLCBYT_BUFFER_HPP
31#define FLCBYT_BUFFER_HPP
38#if defined(__BORLANDC__)
49#define FCB_READ_FILE FLC_READ_FILE
50#define FCB_READ_FORMAT FLC_READ_FORMAT
51#define FCB_WRITE_FILE FLC_WRITE_FILE
52#define FCB_WRITE_FORMAT FLC_WRITE_FORMAT
53#define FCB_INPUT_FILE FLC_INPUT_FILE
54#define FCB_OUTPUT_FILE FLC_OUTPUT_FILE
55#define FCB_INFO FLC_INFO
56#define FCB_STATE FLC_STATE
181 explicit flcbyt_buffer(
const char* filstr,
const char* fmtstr,
char** state=NULL,
size_t buff_sz=4096,
size_t put_back=1);
285 static std::string
help(
const int what,
const int depth,
const char* path);
301 static std::string
syntax(
const int what,
const int depth,
const char* path);
305 int_type underflow();
306 int_type overflow(int_type ch);
318 const std::size_t put_back_;
319 std::vector<char> buffer_;
FLMDEF - External FLAM definitions.
A C++ stream buffer to use with istream/ostream.
Definition FLCBYTBF.hpp:68
static std::string help(const int what, const int depth, const char *path)
Returns help information about the file and format strings.
int error()
Returns an error code for the last byte interface operation.
~flcbyt_buffer()
Flushes buffers and closes the file.
static std::string license()
Retrieves license information.
static std::string version()
Retrieves version information.
static std::string errortrace()
Returns a FLAM error trace.
std::string close(const int statfmt=FLMOUT_FORMAT_LST)
Flushes all internal buffers and closes the file.
std::string errormsg()
Returns an error message for the last byte interface operation.
flcbyt_buffer(const char *filstr, const char *fmtstr, char **state=NULL, size_t buff_sz=4096, size_t put_back=1)
Constructor for a FLUC byte interface streambuf implementation.
static std::string syntax(const int what, const int depth, const char *path)
Returns syntax information about the file and format strings.
static std::string about()
Retrieves about information.
#define FLMOUT_FORMAT_LST
Simple list of lines with each line separated by '\n' and the whole string terminated by 0x00.
Definition FLMDEF.h:33