#include <GroupInfo.h>
Public Member Functions | |
| GroupInfo () | |
| GroupInfo (const char *gd) | |
| void | init () |
| void | setraw (const char *buf, unsigned int bufsz) |
| void | getraw (const char **buf, unsigned int *bufsz) |
| void | set (const char *gd) |
| void | set (const char *group, int fst, int lst, int n, char fl= 'y') |
| void | setfln (int first, int last, int n, char fl= 'y') |
| void | setflag (char fl) |
| void | setctime (nvtime_t ctime) |
| nvtime_t | ctime () const |
| nvtime_t | mtime () const |
| const char * | name () const |
| unsigned int | first () const |
| unsigned int | last () const |
| unsigned int | n () const |
| char | flags () const |
Private Attributes | |
| nvtime_t | _ctime |
| nvtime_t | _mtime |
| unsigned int | _fst |
| unsigned int | _lst |
| unsigned int | _n |
| char | _flag |
| char | _name [512] |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const GroupInfo &gd) |
Definition at line 15 of file GroupInfo.h.
|
|
Definition at line 23 of file GroupInfo.h. References init().
|
|
|
Definition at line 25 of file GroupInfo.h.
|
|
|
Definition at line 115 of file GroupInfo.h. References _ctime, and nvtime_t. Referenced by active_filter_time< Format >::operator()(), active_filter_group_time< Format >::operator()(), and NVActiveDB::write().
|
|
|
Definition at line 121 of file GroupInfo.h. Referenced by CServer::getgroup(), RServer::getgroup(), ns_group(), selectgroup(), and CNewsgroup::sUpdateGroupInfo().
|
|
|
Definition at line 127 of file GroupInfo.h.
00127 {
00128 return _flag;
00129 } friend std::ostream & operator <<(std::ostream & os,
|
|
||||||||||||
|
Definition at line 47 of file GroupInfo.h. References _ctime, _flag, _fst, _lst, _mtime, _n, and _name. Referenced by NVActiveDB::add(), and NVActiveDB::sset().
|
|
|
Definition at line 30 of file GroupInfo.h. References _ctime, _flag, _mtime, and _name. Referenced by GroupInfo(), RServer::setserver(), and RServer::setserverlist().
|
|
|
Definition at line 123 of file GroupInfo.h. Referenced by CServer::getgroup(), RServer::getgroup(), ns_group(), selectgroup(), and CNewsgroup::sUpdateGroupInfo().
|
|
|
Definition at line 117 of file GroupInfo.h. Referenced by CServer::groupinfo().
|
|
|
Definition at line 125 of file GroupInfo.h. Referenced by ns_group().
|
|
|
Definition at line 119 of file GroupInfo.h. Referenced by NVActiveDB::add(), RServer::connect(), ns_group(), active_filter_group_time< Format >::operator()(), active_filter_group< Format >::operator()(), RServer::selectgroup(), NVActiveDB::sset(), and NVActiveDB::write().
|
|
||||||||||||||||||||||||
|
Definition at line 89 of file GroupInfo.h. References _name, ERROR_LOCATION, and setfln().
|
|
|
Definition at line 54 of file GroupInfo.h. References _flag, _fst, _lst, _mtime, _n, _name, ERROR_LOCATION, and nvtime(). Referenced by NVActiveDB::read(), and RServer::selectgroup().
00054 {
00055 const char *p = gd, *e;
00056 char *q = _name;
00057 unsigned int i = 0;
00058
00059 while (i < sizeof(_name) && !isspace(*p)) {
00060 *q++ = *p++;
00061 ++i;
00062 }
00063 if (i == sizeof(_name))
00064 throw Error("Name of newsgroup too long",
00065 ERROR_LOCATION);
00066 *q = '\0';
00067
00068 _lst = strtol(p, (char **) &e, 10);
00069 _fst = strtol(e, (char **) &p, 10);
00070 if (e == p)
00071 throw NSError("gd not in form name int int flag",
00072 ERROR_LOCATION);
00073
00074 if (_fst > _lst)
00075 _n = 0;
00076 else
00077 _n = _lst - _fst + 1;
00078
00079 while (isspace(*p))
00080 p++;
00081 if (*p)
00082 _flag = *p;
00083 else
00084 _flag = 'y';
00085
00086 nvtime(&_mtime);
00087 }
|
|
|
Definition at line 111 of file GroupInfo.h. References _ctime, and nvtime_t. Referenced by NVActiveDB::sset().
00111 {
00112 _ctime = ctime;
00113 }
|
|
|
Definition at line 107 of file GroupInfo.h. References _flag. Referenced by NVActiveDB::read().
00107 {
00108 _flag = fl;
00109 }
|
|
||||||||||||||||||||
|
Definition at line 97 of file GroupInfo.h. References _flag, _fst, _lst, _mtime, _n, nvtime(), and nvtime_t. Referenced by set().
|
|
||||||||||||
|
Definition at line 38 of file GroupInfo.h. References _ctime, _flag, _fst, _lst, _mtime, _n, _name, and ERROR_LOCATION. Referenced by NVActiveDB_Iter::get(), NVActiveDB::get(), and NVActiveDB::write().
|
|
||||||||||||
|
Definition at line 129 of file GroupInfo.h.
|
|
|
Definition at line 16 of file GroupInfo.h. Referenced by ctime(), getraw(), init(), setctime(), and setraw(). |
|
|
Definition at line 19 of file GroupInfo.h. Referenced by getraw(), init(), set(), setflag(), setfln(), and setraw(). |
|
|
Definition at line 18 of file GroupInfo.h. |
|
|
Definition at line 18 of file GroupInfo.h. |
|
|
Definition at line 17 of file GroupInfo.h. Referenced by getraw(), init(), set(), setfln(), and setraw(). |
|
|
Definition at line 18 of file GroupInfo.h. |
|
|
Definition at line 20 of file GroupInfo.h. |
1.3.6-20040222