ost::Dir(3) Library Functions Manual ost::Dir(3)NAME
ost::Dir -
A low level portable directory class.
SYNOPSIS
#include <file.h>
Inherits ost::File.
Public Member Functions
Dir (const char *name=NULL)
void open (const char *name)
void close (void)
virtual ~Dir ()
const char * getName (void)
const char * operator++ ()
const char * operator++ (int)
const char * operator* ()
bool rewind (void)
bool operator! ()
bool isValid (void)
Static Public Member Functions
static bool create (const char *path, Attr attr=attrGroup)
static bool remove (const char *path)
static bool setPrefix (const char *path)
static bool getPrefix (char *path, size_t size=256)
Additional Inherited Members
Detailed Description
A low level portable directory class.
Used to support ccstd Directory container. This provides a basic mechanism for allocating and accessing file entries.
Author:
David Sugar dyfet@ostel.com low level directory access class.
Constructor & Destructor Documentation
ost::Dir::Dir (const char *name = NULL)
virtual ost::Dir::~Dir () [virtual]
Member Function Documentation
void ost::Dir::close (void)
static bool ost::Dir::create (const char *path, Attrattr = attrGroup) [static]
const char* ost::Dir::getName (void)
static bool ost::Dir::getPrefix (char *path, size_tsize = 256) [static]
bool ost::Dir::isValid (void)
void ost::Dir::open (const char *name)
bool ost::Dir::operator! () [inline]
const char* ost::Dir::operator* ()
const char* ost::Dir::operator++ () [inline]
const char* ost::Dir::operator++ (int) [inline]
static bool ost::Dir::remove (const char *path) [static]
bool ost::Dir::rewind (void)
static bool ost::Dir::setPrefix (const char *path) [static]
Author
Generated automatically by Doxygen for GNU CommonC++ from the source code.
GNU CommonC++ Sat Jun 23 2012 ost::Dir(3)
Check Out this Related Man Page
ost::Pointer< T >(3) Library Functions Manual ost::Pointer< T >(3)
NAME
ost::Pointer< T > -
Used to create and manage referece counted pointers.
SYNOPSIS
#include <pointer.h>
Public Member Functions
Pointer (T *ptr=NULL)
Pointer (const Pointer< T > &ref)
virtual ~Pointer ()
Pointer & operator= (const Pointer< T > &ref)
T & operator* () const
T * getObject () const
T * operator-> () const
bool operator! () const
int operator++ () const
int operator-- () const
Protected Member Functions
void ptrDetach (void)
Protected Attributes
unsigned * ptrCount
T * ptrObject
Detailed Description
template<class T>class ost::Pointer< T >
Used to create and manage referece counted pointers.
Author:
David Sugar dyfet@gnutelephony.org reference counted pointer template.
Constructor & Destructor Documentation
template<class T> ost::Pointer< T >::Pointer (T *ptr = NULL) [inline], [explicit]
References ost::Pointer< T >::ptrCount.
template<class T> ost::Pointer< T >::Pointer (const Pointer< T > &ref) [inline]
References ost::Pointer< T >::ptrCount, and ost::Pointer< T >::ptrObject.
template<class T> virtual ost::Pointer< T >::~Pointer () [inline], [virtual]
References ost::Pointer< T >::ptrDetach().
Member Function Documentation
template<class T> T* ost::Pointer< T >::getObject (void) const [inline]
References ost::Pointer< T >::ptrObject.
template<class T> bool ost::Pointer< T >::operator! (void) const [inline]
References ost::Pointer< T >::ptrCount.
template<class T> T& ost::Pointer< T >::operator* () const [inline]
References ost::Pointer< T >::ptrObject.
template<class T> int ost::Pointer< T >::operator++ (void) const [inline]
template<class T> int ost::Pointer< T >::operator-- (void) const [inline]
References ost::Pointer< T >::ptrCount.
template<class T> T* ost::Pointer< T >::operator-> () const [inline]
References ost::Pointer< T >::ptrObject.
template<class T> Pointer& ost::Pointer< T >::operator= (const Pointer< T > &ref) [inline]
References ost::Pointer< T >::ptrCount, ost::Pointer< T >::ptrDetach(), and ost::Pointer< T >::ptrObject.
template<class T> void ost::Pointer< T >::ptrDetach (void) [inline], [protected]
References ost::Pointer< T >::ptrCount, and ost::Pointer< T >::ptrObject.
Referenced by ost::Pointer< T >::operator=(), and ost::Pointer< T >::~Pointer().
Member Data Documentation
template<class T> unsigned* ost::Pointer< T >::ptrCount [protected]
Referenced by ost::Pointer< T >::operator!(), ost::Pointer< T >::operator--(), ost::Pointer< T >::operator=(), ost::Pointer< T
>::Pointer(), and ost::Pointer< T >::ptrDetach().
template<class T> T* ost::Pointer< T >::ptrObject [protected]
Referenced by ost::Pointer< T >::getObject(), ost::Pointer< T >::operator*(), ost::Pointer< T >::operator->(), ost::Pointer< T
>::operator=(), ost::Pointer< T >::Pointer(), and ost::Pointer< T >::ptrDetach().
Author
Generated automatically by Doxygen for GNU CommonC++ from the source code.
GNU CommonC++ Sat Jun 23 2012 ost::Pointer< T >(3)