filters

POLE::Storage Class Reference

List of all members.

Detailed Description

Definition at line 42 of file kpresenter/powerpoint/libppt/pole.h.


Public Types

enum  {
  Ok, OpenFailed, NotOLE, BadOLE,
  UnknownError
}
enum  {
  Ok, OpenFailed, NotOLE, BadOLE,
  UnknownError
}
enum  {
  Ok, OpenFailed, NotOLE, BadOLE,
  UnknownError
}
enum  {
  Ok, OpenFailed, NotOLE, BadOLE,
  UnknownError, StupidWorkaroundForBrokenCompiler = 255
}
enum  { ReadOnly, WriteOnly, ReadWrite }

Public Member Functions

 Storage (const char *filename)
 ~Storage ()
bool open ()
void close ()
int result ()
std::list< std::string > entries (const std::string &path="/")
bool isDirectory (const std::string &name)
Streamstream (const std::string &name, bool reuse=true)
 Storage (const char *filename)
 ~Storage ()
bool open ()
void close ()
int result ()
std::list< std::string > entries (const std::string &path="/")
bool isDirectory (const std::string &name)
Streamstream (const std::string &name, bool reuse=true)
 Storage (const char *filename)
 ~Storage ()
bool open ()
void close ()
int result ()
std::list< std::string > entries (const std::string &path="/")
bool isDirectory (const std::string &name)
Streamstream (const std::string &name, bool reuse=true)
 Storage ()
bool open (const char *filename, int m=ReadOnly)
void flush ()
void close ()
std::list< std::string > listDirectory ()
bool enterDirectory (const std::string &directory)
void leaveDirectory ()
std::string path ()
Streamstream (const std::string &name)

Public Attributes

int result

Protected Attributes

StorageIO * io

Friends

class Stream
class StreamOut

Constructor & Destructor Documentation

Storage::Storage ( const char *  filename  ) 

Constructs a storage with name filename.

Definition at line 1219 of file kpresenter/powerpoint/libppt/pole.cpp.

Storage::~Storage (  ) 

Destroys the storage.

Definition at line 1224 of file kpresenter/powerpoint/libppt/pole.cpp.

POLE::Storage::Storage ( const char *  filename  ) 

Constructs a storage with name filename.

POLE::Storage::~Storage (  ) 

Destroys the storage.

POLE::Storage::Storage ( const char *  filename  ) 

Constructs a storage with name filename.

POLE::Storage::~Storage (  ) 

Destroys the storage.


Member Function Documentation

bool Storage::open (  ) 

Opens the storage.

Returns true if no error occurs.

Definition at line 1234 of file kpresenter/powerpoint/libppt/pole.cpp.

void Storage::close (  ) 

Closes the storage.

Definition at line 1239 of file kpresenter/powerpoint/libppt/pole.cpp.

int POLE::Storage::result (  ) 

Returns the error code of last operation.

std::list< std::string > Storage::entries ( const std::string &  path = "/"  ) 

Finds all stream and directories in given path.

Definition at line 1244 of file kpresenter/powerpoint/libppt/pole.cpp.

bool Storage::isDirectory ( const std::string &  name  ) 

Returns true if specified entry name is a directory.

Definition at line 1260 of file kpresenter/powerpoint/libppt/pole.cpp.

Stream* POLE::Storage::stream ( const std::string &  name,
bool  reuse = true 
)

Finds and returns a stream with the specified name.

If reuse is true, this function returns the already created stream (if any). Otherwise it will create the stream.

When errors occur, this function returns NULL.

You do not need to delete the created stream, it will be handled automatically.

bool POLE::Storage::open (  ) 

Opens the storage.

Returns true if no error occurs.

void POLE::Storage::close (  ) 

Closes the storage.

int POLE::Storage::result (  ) 

Returns the error code of last operation.

std::list<std::string> POLE::Storage::entries ( const std::string &  path = "/"  ) 

Finds all stream and directories in given path.

bool POLE::Storage::isDirectory ( const std::string &  name  ) 

Returns true if specified entry name is a directory.

Stream* POLE::Storage::stream ( const std::string &  name,
bool  reuse = true 
)

Finds and returns a stream with the specified name.

If reuse is true, this function returns the already created stream (if any). Otherwise it will create the stream.

When errors occur, this function returns NULL.

You do not need to delete the created stream, it will be handled automatically.

bool POLE::Storage::open (  ) 

Opens the storage.

Returns true if no error occurs.

void POLE::Storage::close (  ) 

Closes the storage.

int POLE::Storage::result (  ) 

Returns the error code of last operation.

std::list<std::string> POLE::Storage::entries ( const std::string &  path = "/"  ) 

Finds all stream and directories in given path.

bool POLE::Storage::isDirectory ( const std::string &  name  ) 

Returns true if specified entry name is a directory.

Stream* POLE::Storage::stream ( const std::string &  name,
bool  reuse = true 
)

Finds and returns a stream with the specified name.

If reuse is true, this function returns the already created stream (if any). Otherwise it will create the stream.

When errors occur, this function returns NULL.

You do not need to delete the created stream, it will be handled automatically.

bool Storage::open ( const char *  filename,
int  m = ReadOnly 
)

Opens the specified file, using the mode m.

Returns:
true if succesful, otherwise false.

Definition at line 877 of file kword/starwriter/pole.cpp.

void Storage::flush (  ) 

Flushes the buffer to the disk.

Definition at line 893 of file kword/starwriter/pole.cpp.

void POLE::Storage::close (  ) 

Closes the storage.

If it was opened using WriteOnly or ReadWrite, this function also flushes the buffer.

Stream * Storage::stream ( const std::string &  name  ) 

Creates an input/output stream for specified name.

You should delete the stream because it is not owned by the storage.

If name does not exist or is a directory, this function will return null.

Definition at line 969 of file kword/starwriter/pole.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys