File: nppex.h

package info (click to toggle)
peruser 4b33-10
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,944 kB
  • ctags: 1,064
  • sloc: cpp: 22,397; perl: 2,733; makefile: 345; sh: 335
file content (25 lines) | stat: -rw-r--r-- 677 bytes parent folder | download | duplicates (2)
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
class NP_Pex
{
   NP_File spool, read, temp_read, temp, config; 

   NP_Stringarray array;
   
   char error_message[ 1024 ], *home;

   int convert_date( char *, char ** );
   void convert_localtime( int *, int *, int *, int *, int *, int * );
   void adjust_time( int *, int *, int *, int *, int *, int * );
   void convert_zone( char * );
   int convert_month( char * );
   
 public:

   NP_Pex() { home = getenv( "HOME" ); };
   ~NP_Pex() { convert_date( NULL, NULL ); };
   
   int pack_group( char *, char * );
   int expire_group( char *, char * );

   void print_error() { fprintf( stderr, "%s\n", error_message ); };
   char *get_error() { return error_message; };
};