AXCEL C++ Framework
Elegance through abstraction
|
Common base class. More...
#include <axcel.h>
Public Member Functions | |
object () | |
virtual string | type ()=0 |
Get type of object. | |
virtual | operator string ()=0 |
Convert to string. | |
string | tostr () |
Convert to string. | |
exception | error () |
Get last error. | |
Protected Attributes | |
int | errnum |
Common base class.
Defines pure abstract methods for retrieving the inherited object type at runtime and an implementation-defined string representation of the object.
Classes that inherit from this class should set the protected errnum variable to an appropriate errno type value when an error within one of the object's methods occur.
exception axcel::object::error | ( | ) | [final] |
axcel::object::operator string | ( | ) | [pure virtual] |
Convert to string.
Implemented in axcel::io::iofmt, axcel::io::iob, axcel::io::ios, axcel::data, axcel::string, axcel::fs::file, axcel::net::ipaddr, axcel::net::socket::tcp, axcel::net::socket::udp, axcel::net::dgram, axcel::timer, axcel::console, axcel::proc::thread, axcel::proc::library, axcel::proc::mutex, axcel::proc::semaphore, axcel::proc::pstream, axcel::proc::environment, axcel::net::irc::msg, axcel::net::http::query, axcel::net::http::field, axcel::net::http::request, axcel::net::http::response, axcel::net::http::header, and axcel::exception.
string axcel::object::tostr | ( | ) |
string axcel::object::type | ( | ) | [pure virtual] |
Get type of object.
Implemented in axcel::io::iofmt, axcel::io::iob, axcel::io::input, axcel::io::output, axcel::io::ios, axcel::data, axcel::string, axcel::fs::file, axcel::net::ipaddr, axcel::net::socket::tcp, axcel::net::socket::udp, axcel::net::dgram, axcel::timer, axcel::console, axcel::proc::thread, axcel::proc::library, axcel::proc::mutex, axcel::proc::semaphore, axcel::proc::pstream, axcel::proc::environment, axcel::net::irc::msg, axcel::net::http::query, axcel::net::http::field, axcel::net::http::request, axcel::net::http::response, axcel::net::http::header, and axcel::exception.
int axcel::object::errnum [protected] |