User Documentation
RAVL, Recognition And Vision Library
DEVELOP HOME PAGE CLASS LIST CONTENTS
Ravl - Core - IO - Streams - StrOStreamC
 

  PUBLIC
StrOStreamC::StrOStreamC(void)
StrOStreamC::String(void)
StrOStreamC::Size(void) const
OStreamC::form(const char *,...)
OStreamC::os(void)
OStreamC::os(void) const
OStreamC::operator ostream &(void)
OStreamC::operator const ostream &(void) const
OStreamC::write(const char *,StreamSizeT)
OStreamC::put(char)
OStreamC::operator <<(const char *)
OStreamC::operator <<(const DataT &)
OStreamC::Tell(void) const
OStreamC::Seek(streampos)
OStreamC::tellp(void) const
OStreamC::seekp(streampos)
OStreamC::seekp(streampos,SeekDirT)
StreamBaseC::Name(void) const
StreamBaseC::IsOpen(void) const
StreamBaseC::good(void) const
StreamBaseC::bad(void) const
StreamBaseC::eof(void) const
StreamBaseC::fail(void) const
StreamBaseC::operator !(void) const
StreamBaseC::operator void *(void) const
StreamBaseC::DiagnoseStream(ostream &)
StreamBaseC::Close(void)
HandleRefCounterC::SetDestructionOp(const TriggerC &)
HandleRefCounterC::References(void) const
RCHandleC::operator =(const RCHandleC &)
RCHandleC::DeepCopy(UIntT) const
RCHandleC::operator ==(const RCHandleC &) const
RCHandleC::operator !=(const RCHandleC &) const
RCHandleC::Hash(void) const
RCHandleC::IsValid(void) const
RCHandleC::Invalidate(void)
RCHandleC::IsHandleType(const DT &) const
RCHandleC::CheckHandleType(const DT &) const
RCHandleC::References(void) const
RCHandleC::operator <<(ostream &,const RCHandleC &)
RCHandleC::operator >>(istream &,RCHandleC &)

   StrOStreamC   
 
Output stream to memory.
 
include "Ravl/StrStream.hh"
Created:25/02/1999 
User Level:Normal
Library:RavlCore
In Scope:RavlN

Comments:
Wraps the standard library ostrstream class.

Parent Classes: Variables:
Methods:
StrOStreamC()
Default constructor.

StringC String()
Get text written to stream.
Note, this will reset the buffer.

UIntT Size() const
Get the number of bytes written so far.

#include "Ravl/Stream.hh"
ostream & form(const char * format,...)
Print to stream using good old 'C' sytle formating.
This isn't the saftest function, it uses a fixed buffer of 4096 bytes.

This is a duplication of the function GNU iostreams for those platforms that don't have this function.


ostream & os()
Access ostream.

const ostream & os() const
Access ostream.

operator ostream &()
Converter.

operator const ostream &() const
Converter.

ostream & write(const char * d,StreamSizeT n)
Write data.
ostream compatable.

ostream & put(char ch)
Put character.
ostream compatable.

ostream & operator <<(const char * txt)
Output text.

ostream & operator <<(const DataT & dat)

streampos Tell() const
Where are we in the stream.

void Seek(streampos to)
Goto a position in the stream.

streampos tellp() const
Where are we in the stream.
ostream compatable.

ostream & seekp(streampos to)
Goto a position in the stream.
ostream compatable.

ostream & seekp(streampos to,SeekDirT dir)
Goto a position in the stream.
ostream compatable.

const StringC & Name() const
Returns the name of the stream.

bool IsOpen() const
Test if this stream is open.

bool good() const
Is stream good ?

bool bad() const
Is stream corrupted ?

bool eof() const
End of file ?

bool fail() const
Operation failed ?

bool operator !() const
Not failed ?

operator void *() const
Ok ?

bool DiagnoseStream(ostream & out)
Print diagnostic message about the streams state to out.

bool Close()
Close this stream.
After this is called no further IO should be attempted!

#include "Ravl/HandleRefCounter.hh"
void SetDestructionOp(const TriggerC & ntrig)
Set trigger to call on delete.

UIntT References() const
Returns the number of references to this object.

#include "Ravl/RefCounter.hh"
const RCHandleC<HandleRefCounterBodyC> & operator =(const RCHandleC<HandleRefCounterBodyC> & oth)
Assign handle.

RCHandleC<HandleRefCounterBodyC> DeepCopy(UIntT levels = ((UIntT))) const
Do a deep copy of the object.

bool operator ==(const RCHandleC<HandleRefCounterBodyC> & oth) const
Are handles to the same object ?

bool operator !=(const RCHandleC<HandleRefCounterBodyC> & oth) const
Are handles to different objects ?

UIntT Hash() const
Default hash function.
This hashes on the address of the body.

bool IsValid() const
Test if this is a valid handle.

void Invalidate()
Invalidate this handle.
Unattaches the body from the handle.

bool IsHandleType(const DT &) const
Is handle of given type ?

void CheckHandleType(const DT & dummy) const
Check handle type. Throw an expception if not.

UIntT References() const
Find the number of references to the body of this object.

ostream & operator <<(ostream & strm,const RCHandleC<HandleRefCounterBodyC> & obj)

istream & operator >>(istream & strm,RCHandleC<HandleRefCounterBodyC> & obj)


Maintainer:Charles Galambos, Created: 25/02/1999, Documentation by CxxDoc: Tue Aug 13 09:59:02 2002