sk::io::File Class Reference

#include <File.h>

Inheritance diagram for sk::io::File:

sk::util::Object sk::io::TtyDevice

List of all members.

Public Member Functions

 File (const sk::util::String &name)
 File (const sk::util::String &name, const sk::util::String &mode)
 File (const sk::util::String &name, const sk::util::String &mode, int permissions)
 File (const sk::util::String &name, int mode)
 File (const sk::util::String &name, int mode, int permissions)
 File (const File &other)
virtual ~File ()
const sk::util::String getName () const
virtual sk::io::FileDescriptorgetFileDescriptor () const
virtual void close ()
long long size () const
long long position () 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.


Constructor & Destructor Documentation

sk::io::File::File ( const sk::util::String name  ) 

sk::io::File::File ( const sk::util::String name,
const sk::util::String mode 
)

sk::io::File::File ( const sk::util::String name,
const sk::util::String mode,
int  permissions 
)

sk::io::File::File ( const sk::util::String name,
int  mode 
)

sk::io::File::File ( const sk::util::String name,
int  mode,
int  permissions 
)

sk::io::File::File ( const File other  ) 

virtual sk::io::File::~File (  )  [virtual]


Member Function Documentation

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.

virtual void sk::io::File::close (  )  [virtual]

Reimplemented in sk::io::TtyDevice.

const sk::util::Class sk::io::File::getClass (  )  const [virtual]

Returns the object's class.

Reimplemented from sk::util::Object.

Reimplemented in sk::io::TtyDevice.

virtual sk::io::FileDescriptor& sk::io::File::getFileDescriptor (  )  const [virtual]

Reimplemented in sk::io::TtyDevice.

virtual uint64_t sk::util::Object::getId (  )  const [virtual, inherited]

Returns a unique object id.

Reimplemented in sk::rt::Thread.

const sk::util::String sk::io::File::getName (  )  const

virtual const String sk::util::Object::inspect (  )  const [virtual, inherited]

long long sk::io::File::position (  )  const

virtual const Object& sk::util::Object::self (  )  const [virtual, inherited]

Reimplemented in sk::util::String.

virtual Object& sk::util::Object::self (  )  [virtual, inherited]

Returns a reference to itself.

Reimplemented in sk::util::String.

long long sk::io::File::size (  )  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.


The documentation for this class was generated from the following file:

Generated on Tue Mar 3 12:36:09 2009 for stemkit-cpp by  doxygen 1.5.8