27 #ifndef GURLSTRING_HPP
28 #define GURLSTRING_HPP
55 virtual void clear(
void);
57 virtual std::string
classname(
void)
const;
58 virtual void open(
const std::string&
string,
const std::string& mode =
"");
59 virtual void close(
void);
60 virtual int read(
void* buffer,
const int& nbyte);
61 virtual int write(
const void* buffer,
const int& nbyte);
63 virtual void put_char(
const int& character);
64 virtual void scanf(
const char* format, ...);
65 virtual void printf(
const char* format, ...);
92 return (
"GUrlString");
virtual int read(void *buffer, const int &nbyte)
Read block of data from string buffer.
GUrlString & operator=(const GUrlString &url)
Assignment operator.
virtual void printf(const char *format,...)
Write formatted data into string.
virtual std::string classname(void) const
Return class name.
void free_members(void)
Delete class members.
std::string m_buffer
Text string.
virtual void scanf(const char *format,...)
Read formatted data from string.
void copy_members(const GUrlString &url)
Copy class members.
virtual void put_char(const int &character)
Write character into string.
Abstract URL base class interface definition.
virtual int get_char(void) const
Return next character from string.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print URL information.
virtual void clear(void)
Clear string URL.
virtual void close(void)
Close file.
GUrlString(void)
Void constructor.
const std::string & string(void) const
int m_index
String position indicator.
virtual void open(const std::string &string, const std::string &mode="")
Open string URL.
virtual GUrlString * clone(void) const
Clone string URL.
void init_members(void)
Initialise class members.
virtual ~GUrlString(void)
Destructor.
virtual int write(const void *buffer, const int &nbyte)
Write block of data buffer into string.