#ifndef CANONICAL_H #define CANONICAL_H #ifndef MISC_H #include #endif class CAN: public ARRAY_OBJ{ public: SSTRING name; SSTRING address; SSTRING comment; /*~PROTOBEG~ CAN*/ public: CAN (char *line); CAN (void); int edit (PRIVILEGE *privi); const char *getname (void); int is_valid (void); void write (FILE_CFG *fout); /*~PROTOEND~ CAN*/ }; class CANONICAL: public ARRAY{ CONFIG_FILE f; PRIVILEGE *privi; bool dodb; int btype; /*~PROTOBEG~ CANONICAL */ public: CANONICAL (const char *config, PRIVILEGE *_privi, bool _dodb, int _btype); void addnew (void); int edit (void); CAN *getitem (int no); int locate (const char *name); private: const char *type (int nametable); public: int write (void); /*~PROTOEND~ CANONICAL */ }; #endif