#include <Scope.h>
Public Member Functions | |
Scope (const sk::util::Object &object) | |
Scope (const sk::util::String &name) | |
Scope (const Scope &other) | |
virtual | ~Scope () |
Scope & | operator= (const Scope &other) |
const Scope | scope (const sk::util::String &name) const |
const logger::Stream | error (const sk::util::String &label=sk::util::String::EMPTY, const sk::rt::logger::Spot &spot=sk::rt::logger::Spot::NOTSET) const |
const logger::Stream | warning (const sk::util::String &label=sk::util::String::EMPTY, const sk::rt::logger::Spot &spot=sk::rt::logger::Spot::NOTSET) const |
const logger::Stream | stat (const sk::util::String &label=sk::util::String::EMPTY, const sk::rt::logger::Spot &spot=sk::rt::logger::Spot::NOTSET) const |
const logger::Stream | info (const sk::util::String &label=sk::util::String::EMPTY, const sk::rt::logger::Spot &spot=sk::rt::logger::Spot::NOTSET) const |
const logger::Stream | notice (const sk::util::String &label=sk::util::String::EMPTY, const sk::rt::logger::Spot &spot=sk::rt::logger::Spot::NOTSET) const |
const logger::Stream | debug (const sk::util::String &label=sk::util::String::EMPTY, const sk::rt::logger::Spot &spot=sk::rt::logger::Spot::NOTSET) const |
const logger::Stream | detail (const sk::util::String &label=sk::util::String::EMPTY, const sk::rt::logger::Spot &spot=sk::rt::logger::Spot::NOTSET) const |
const sk::util::String | getProperty (const sk::util::String &name) const |
bool | hasProperty (const sk::util::String &name) const |
const sk::util::String | getProperty (const sk::util::String &name, const sk::util::String &fallback) const |
const sk::util::String | getProperty (const sk::util::String &name, const char *fallback) const |
int | getProperty (const sk::util::String &name, int fallback) const |
bool | getProperty (const sk::util::String &name, const sk::util::Boolean &fallback) const |
const sk::util::Class | getClass () const |
Returns the object's class. | |
virtual Object & | self () |
Returns a reference to itself. | |
virtual const Object & | self () const |
Object * | clone () const |
Instantiates another object of the same class as a copy of itself. | |
virtual uint64_t | getId () const |
Returns a unique object id. | |
virtual const String | toString () const |
Returns a string representation of the object. By default, it returns the object's class and the objects's id. | |
virtual const String | inspect () const |
Returns a string containing human-readable representation of the object. | |
Static Public Member Functions | |
static scope::Controller & | controller () |
Protected Member Functions | |
void | agregateScopeName (std::ostream &stream) const |
const sk::util::Object & | getObject () const |
const scope::IConfig & | getConfig () const |
sk::rt::Scope::Scope | ( | const sk::util::Object & | object | ) |
sk::rt::Scope::Scope | ( | const sk::util::String & | name | ) |
sk::rt::Scope::Scope | ( | const Scope & | other | ) |
virtual sk::rt::Scope::~Scope | ( | ) | [virtual] |
void sk::rt::Scope::agregateScopeName | ( | std::ostream & | stream | ) | const [protected, virtual] |
Implements sk::rt::logger::IScope.
Object* sk::util::Object::clone | ( | ) | const [inherited] |
Instantiates another object of the same class as a copy of itself.
Reimplemented in sk::rt::logger::Destination, and sk::util::String.
static scope::Controller& sk::rt::Scope::controller | ( | ) | [static] |
const logger::Stream sk::rt::Scope::debug | ( | const sk::util::String & | label = sk::util::String::EMPTY , |
|
const sk::rt::logger::Spot & | spot = sk::rt::logger::Spot::NOTSET | |||
) | const |
const logger::Stream sk::rt::Scope::detail | ( | const sk::util::String & | label = sk::util::String::EMPTY , |
|
const sk::rt::logger::Spot & | spot = sk::rt::logger::Spot::NOTSET | |||
) | const |
const logger::Stream sk::rt::Scope::error | ( | const sk::util::String & | label = sk::util::String::EMPTY , |
|
const sk::rt::logger::Spot & | spot = sk::rt::logger::Spot::NOTSET | |||
) | const |
const sk::util::Class sk::rt::Scope::getClass | ( | ) | const [virtual] |
const scope::IConfig& sk::rt::Scope::getConfig | ( | ) | const [protected, virtual] |
Implements sk::rt::logger::IScope.
virtual uint64_t sk::util::Object::getId | ( | ) | const [virtual, inherited] |
const sk::util::Object& sk::rt::Scope::getObject | ( | ) | const [protected, virtual] |
Implements sk::rt::logger::IScope.
bool sk::rt::Scope::getProperty | ( | const sk::util::String & | name, | |
const sk::util::Boolean & | fallback | |||
) | const |
int sk::rt::Scope::getProperty | ( | const sk::util::String & | name, | |
int | fallback | |||
) | const |
const sk::util::String sk::rt::Scope::getProperty | ( | const sk::util::String & | name, | |
const char * | fallback | |||
) | const |
const sk::util::String sk::rt::Scope::getProperty | ( | const sk::util::String & | name, | |
const sk::util::String & | fallback | |||
) | const |
const sk::util::String sk::rt::Scope::getProperty | ( | const sk::util::String & | name | ) | const |
bool sk::rt::Scope::hasProperty | ( | const sk::util::String & | name | ) | const |
const logger::Stream sk::rt::Scope::info | ( | const sk::util::String & | label = sk::util::String::EMPTY , |
|
const sk::rt::logger::Spot & | spot = sk::rt::logger::Spot::NOTSET | |||
) | const |
virtual const String sk::util::Object::inspect | ( | ) | const [virtual, inherited] |
Returns a string containing human-readable representation of the object.
Reimplemented in sk::rt::thread::AbstractLock, sk::rt::Thread, sk::util::Class, sk::util::Container, sk::util::slot::Pointer< T, Mixin >, sk::util::slot::Reference< T, Mixin >, sk::util::String, and sk::util::StringArray.
const logger::Stream sk::rt::Scope::notice | ( | const sk::util::String & | label = sk::util::String::EMPTY , |
|
const sk::rt::logger::Spot & | spot = sk::rt::logger::Spot::NOTSET | |||
) | const |
const Scope sk::rt::Scope::scope | ( | const sk::util::String & | name | ) | const |
virtual const Object& sk::util::Object::self | ( | ) | const [virtual, inherited] |
Reimplemented in sk::util::String.
virtual Object& sk::util::Object::self | ( | ) | [virtual, inherited] |
const logger::Stream sk::rt::Scope::stat | ( | const sk::util::String & | label = sk::util::String::EMPTY , |
|
const sk::rt::logger::Spot & | spot = sk::rt::logger::Spot::NOTSET | |||
) | const |
virtual const String sk::util::Object::toString | ( | ) | const [virtual, inherited] |
Returns a string representation of the object. By default, it returns the object's class and the objects's id.
Reimplemented in sk::rt::logger::Level, sk::rt::thread::State, sk::util::Boolean, sk::util::Class, sk::util::Container, sk::util::Pathname, and sk::util::String.
const logger::Stream sk::rt::Scope::warning | ( | const sk::util::String & | label = sk::util::String::EMPTY , |
|
const sk::rt::logger::Spot & | spot = sk::rt::logger::Spot::NOTSET | |||
) | const |