AXCEL C++ Framework
Elegance through abstraction
Public Member Functions | Protected Attributes
axcel::object Class Reference

Common base class. More...

#include <axcel.h>

Inheritance diagram for axcel::object:
axcel::exception axcel::io::iob axcel::io::iofmt axcel::net::dgram axcel::net::http::field axcel::net::http::header axcel::net::http::query axcel::net::http::request axcel::net::http::response axcel::net::ipaddr axcel::net::irc::msg axcel::net::socket::udp axcel::proc::environment axcel::proc::library axcel::proc::mutex axcel::proc::semaphore axcel::proc::thread axcel::timer

List of all members.

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

Detailed Description

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.

Definition at line 249 of file axcel.h.


Constructor & Destructor Documentation

axcel::object::object ( ) [inline]

Definition at line 252 of file axcel.h.


Member Function Documentation

exception axcel::object::error ( ) [final]

Get last error.

Returns:
exception object representing the last error that occurred with this object.

Definition at line 203 of file axcel.cpp.

axcel::object::operator string ( ) [pure virtual]
string axcel::object::tostr ( )

Convert to string.

Returns:
Suitable string representation of object's data

Definition at line 7186 of file axcel.cpp.

string axcel::object::type ( ) [pure virtual]

Member Data Documentation

int axcel::object::errnum [protected]

Definition at line 250 of file axcel.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Defines