46 GUrlFile(
const std::string& url,
const std::string& mode);
54 virtual void clear(
void);
56 virtual std::string
classname(
void)
const;
57 virtual void open(
const std::string& url,
const std::string& mode);
58 virtual void close(
void);
59 virtual int read(
void* buffer,
const int& nbyte);
60 virtual int write(
const void* buffer,
const int& nbyte);
62 virtual void put_char(
const int& character);
63 virtual void scanf(
const char* format, ...);
64 virtual void printf(
const char* format, ...);
std::string m_mode
File mode.
virtual void clear(void)
Clear instance.
GUrlFile(void)
Void constructor.
void free_members(void)
Delete class members.
GUrlFile & operator=(const GUrlFile &url)
Assignment operator.
virtual int write(const void *buffer, const int &nbyte)
Write block of data buffer into file.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print URL information.
virtual ~GUrlFile(void)
Destructor.
Abstract URL base class interface definition.
std::string m_url
File URL.
virtual void close(void)
Close file.
virtual void open(const std::string &url, const std::string &mode)
Open file.
virtual void printf(const char *format,...)
Write formatted data into file.
void copy_members(const GUrlFile &url)
Copy class members.
virtual std::string classname(void) const
Return class name.
virtual void scanf(const char *format,...)
Read formatted data from file.
virtual int get_char(void) const
Return next character from file.
virtual GUrlFile * clone(void) const
Clone instance.
virtual int read(void *buffer, const int &nbyte)
Read block of data from file in buffer.
virtual void put_char(const int &character)
Write character into file.
void init_members(void)
Initialise class members.
FILE * m_fptr
File pointer.