#include <TtyDevice.h>
Public Member Functions | |
TtyDevice (const sk::util::String &name) | |
virtual | ~TtyDevice () |
void | close () |
sk::io::TtyFileDescriptor & | getFileDescriptor () const |
sk::io::Tty & | getTty () |
const sk::io::Tty & | getTty () const |
const sk::util::Class | getClass () const |
Returns the object's class. | |
const sk::util::String | getName () const |
long long | size () const |
long long | position () const |
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. | |
void | setLines (int lines) |
void | setColumns (int columns) |
sk::io::TtyDevice::TtyDevice | ( | const sk::util::String & | name | ) |
virtual sk::io::TtyDevice::~TtyDevice | ( | ) | [virtual] |
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.
void sk::io::TtyDevice::close | ( | ) | [virtual] |
Reimplemented from sk::io::File.
const sk::util::Class sk::io::TtyDevice::getClass | ( | ) | const [virtual] |
sk::io::TtyFileDescriptor& sk::io::TtyDevice::getFileDescriptor | ( | ) | const [virtual] |
Reimplemented from sk::io::File.
virtual uint64_t sk::util::Object::getId | ( | ) | const [virtual, inherited] |
const sk::util::String sk::io::File::getName | ( | ) | const [inherited] |
const sk::io::Tty& sk::io::TtyDevice::getTty | ( | ) | const [virtual] |
Implements sk::io::DelegatingTty.
sk::io::Tty& sk::io::TtyDevice::getTty | ( | ) | [virtual] |
Implements sk::io::DelegatingTty.
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.
long long sk::io::File::position | ( | ) | const [inherited] |
virtual const Object& sk::util::Object::self | ( | ) | const [virtual, inherited] |
Reimplemented in sk::util::String.
virtual Object& sk::util::Object::self | ( | ) | [virtual, inherited] |
void sk::io::DelegatingTty::setColumns | ( | int | columns | ) | [virtual, inherited] |
Implements sk::io::Tty.
void sk::io::DelegatingTty::setLines | ( | int | lines | ) | [virtual, inherited] |
Implements sk::io::Tty.
long long sk::io::File::size | ( | ) | const [inherited] |
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.