-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTEMPLATE.HPP
70 lines (61 loc) · 2.89 KB
/
TEMPLATE.HPP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/* ------------------------------------------------------------
* Filename ............... Template.Hpp
*
* General Purpose ........ include file with template class
* ------------------------------------------------------------
* First date ............. 15 dec 1993
*
* First in version ....... 2.00
*
* Written by ............. Alain Schellinck
* ------------------------------------------------------------
* Revisions:
* ----------
*
* Date | By | Purpose |
* ---------+----+--------------------------------------------+
* | | |
* | | |
* | | |
*/
/*--] Classes [----------------------------------] TemplateIO [------------*/
const ShrtT maxTemplates = 256;
_StructType(template_data)
struct template_data
{
ChrT desc [ 61]; // description
ChrT comment [ 81]; // comment
ChrT valMsg [ 9]; // message to send when validating
WrdT secLevel; // security level
WrdT subscribe; // subscribe period in days
WrdT expLevel; // expiration level
WrdT tbTime; // time to add on the timebank
WrdT tbKbyte; // kbyte to add on the timebank
WrdT netCredit; // netmail credit
IntT logLevel; // his/her loglevel
FlgT hidden; // some UFLAGS_xxx booleans
FlgT noTops;
FlgT atten;
FlgT noKill;
FlgT ignDld;
FlgT deleted; // is this template deleted ?
ChrT reserved [99]; // reserved for the future
PbFlags valFlagsOn; // access flags to switch on (validated)
PbFlags valFlagsOff; // access flags to switch off (validated)
PbFlags expFlagsOn; // access flags to switch on (expired)
PbFlags expFlagsOff; // access flags to switch off (expired)
};
_ClassType(TemplateIO)
class TemplateIO : public template_data, public MultiRecIO
{
public:
TemplateIO ( ChrP path, ChrP fn = "Template.Pb" );
FlgT readRec ( );
FlgT writeRec ( );
ShrtT recLen ( );
void clear ( );
void copy ( TemplateIOP orig );
FlgT inUse ( );
};
extern TemplateIOP tpl;
/*---------------------------] END OF THE CODE [---------------------------*/