Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

ActiveDB Class Reference

#include <ActiveDB.h>

Inheritance diagram for ActiveDB:

NVActiveDB List of all members.

Public Types

enum  { update_only = 0x01 }
enum  { m_active, m_times }
enum  { F_STORE_READONLY = 0x1, F_CLEAR = 0x2 }

Public Member Functions

virtual ~ActiveDB ()
virtual void clear (void)=0
virtual int is_empty (void)=0
virtual void add (GroupInfo &gi)=0
virtual void set (GroupInfo &gi, int flags=0)=0
virtual int get (const char *group, GroupInfo *gi)=0
virtual int hasgroup (const char *group)=0
virtual void read (std::istream &is, const char *filter, int flags=0)=0
virtual void write (std::ostream &os, nvtime_t ctime=0, int mode=m_active, const char *filter=NULL)=0
virtual void setmtime (unsigned long tm, int force=0)=0
virtual void getmtime (unsigned long *tm)=0
virtual Iter< GroupInfobegin ()=0
virtual Iter< GroupInfoend ()=0

Protected Member Functions

 ActiveDB ()

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
update_only 

Definition at line 20 of file ActiveDB.h.

00020              {
00021                 update_only = 0x01
00022         };

anonymous enum
 

Enumeration values:
m_active 
m_times 

Definition at line 24 of file ActiveDB.h.

00024              {
00025                 m_active, m_times
00026         };

anonymous enum
 

Enumeration values:
F_STORE_READONLY 
F_CLEAR 

Definition at line 28 of file ActiveDB.h.

00028              {
00029                 F_STORE_READONLY = 0x1,
00030                 F_CLEAR = 0x2
00031         };


Constructor & Destructor Documentation

ActiveDB::ActiveDB  )  [protected]
 

Definition at line 3 of file ActiveDB.cc.

00004 {
00005 }

ActiveDB::~ActiveDB  )  [virtual]
 

Definition at line 7 of file ActiveDB.cc.

00008 {
00009 }


Member Function Documentation

virtual void ActiveDB::add GroupInfo gi  )  [pure virtual]
 

Implemented in NVActiveDB.

virtual Iter< GroupInfo > ActiveDB::begin  )  [pure virtual]
 

Implemented in NVActiveDB.

Referenced by ns_list(), and ns_newgroups().

virtual void ActiveDB::clear void   )  [pure virtual]
 

Implemented in NVActiveDB.

virtual Iter< GroupInfo > ActiveDB::end  )  [pure virtual]
 

Implemented in NVActiveDB.

Referenced by ns_list(), and ns_newgroups().

virtual int ActiveDB::get const char *  group,
GroupInfo gi
[pure virtual]
 

Implemented in NVActiveDB.

Referenced by RServer::groupinfo(), LServer::groupinfo(), and RServer::selectgroup().

virtual void ActiveDB::getmtime unsigned long *  tm  )  [pure virtual]
 

Implemented in NVActiveDB.

virtual int ActiveDB::hasgroup const char *  group  )  [pure virtual]
 

Implemented in NVActiveDB.

Referenced by LServer::getgroup().

virtual int ActiveDB::is_empty void   )  [pure virtual]
 

Implemented in NVActiveDB.

virtual void ActiveDB::read std::istream &  is,
const char *  filter,
int  flags = 0
[pure virtual]
 

Implemented in NVActiveDB.

Referenced by RServer::active().

virtual void ActiveDB::set GroupInfo gi,
int  flags = 0
[pure virtual]
 

Implemented in NVActiveDB.

Referenced by RServer::selectgroup().

virtual void ActiveDB::setmtime unsigned long  tm,
int  force = 0
[pure virtual]
 

Implemented in NVActiveDB.

virtual void ActiveDB::write std::ostream &  os,
nvtime_t  ctime = 0,
int  mode = m_active,
const char *  filter = NULL
[pure virtual]
 

Implemented in NVActiveDB.


The documentation for this class was generated from the following files:
Generated on Sun Oct 24 21:08:21 2004 for NewsCache by doxygen 1.3.6-20040222