#pragma interface #include class ETCPROTOCOL: public ARRAY_OBJ { private: void init (void); public: SSTRING protocol_name; // int number; // SSTRING aliases; // SSTRING comment; // bool new_etcprotocol; // /*~PROTOBEG~ ETCPROTOCOL */ public: ETCPROTOCOL (const char *_protocol_name); ETCPROTOCOL ( void ); public: /*~PROTOEND~ ETCPROTOCOL */ }; class ETCPROTOCOLLIST: public ARRAY { private: char *next_word( char *d, char *s, int size ); void add_protocol( int line, VIEWITEM *item ); int valid_number( char *word, ETCPROTOCOL *inetdconf ); void valid_aliases( char *word, ETCPROTOCOL *inetdconf ); /*~PROTOBEG~ ETCPROTOCOLLIST */ public: ETCPROTOCOLLIST( ); ETCPROTOCOL *getitem (const char *id) const; ETCPROTOCOL *getitem_alias (const char *id) const; ETCPROTOCOL *getitem (int negative) const; void read (void); int edit (void); /*~PROTOEND~ ETCPROTOCOLLIST */ };