NAME
ACE_Section_Key_Internal -
A base class for internal handles to section keys for
configuration implementations
SYNOPSIS
#include <ace/Configuration.h>
class ACE_Section_Key_Internal
{
public:
virtual ~ACE_Section_Key_Internal (void);
virtual int add_ref (void);
virtual int dec_ref (void);
protected:
ACE_Section_Key_Internal (void);
ACE_Section_Key_Internal (const ACE_Section_Key_Internal& rhs);
ACE_Section_Key_Internal& operator= (
ACE_Section_Key_Internal& rhs
);
u_int ref_count_;
};
DESCRIPTION
The ACE configuration API provides a portable abstraction for
program configuration. The API supports a tree based hierarchy
of configuration sections. Each section contains other sections
or values. Values may contain string, unsigned integer and
binary data.
PUBLIC MEMBERS
virtual ~ACE_Section_Key_Internal (void);
Virtual destructor, make sure descendants are virtual!
virtual int add_ref (void);
Increment reference count
virtual int dec_ref (void);
Decrement reference count. Will delete this if count gets to 0
PROTECTED MEMBERS
ACE_Section_Key_Internal (void);
ACE_Section_Key_Internal (const ACE_Section_Key_Internal& rhs);
ACE_Section_Key_Internal& operator= (ACE_Section_Key_Internal& rhs);
u_int ref_count_;
AUTHOR
Chris Hafey chris@stentorsoft.com
TODO
- Add locking for thread safety.
- Need to investigate what happens if memory mapped file gets mapped to
a location different than it was created with.
- Implement export and import of binary values
- Add dynamic buffer when importing. currently it will not allow
importing of values greater than a fixed ammount (4096 bytes)
- Replace unsigned int with a type that is fixed accross platforms.
LIBRARY
ace