#include <ace/Capabilities.h>
class ACE_Capabilities {
public:
ACE_Capabilities (void);
~ACE_Capabilities(void);
int getval (const char *ent, ACE_CString &val);
int getval (const char *ent, int &val);
int getent (const char *fname, const char *name);
protected:
const char *parse (const char *buf, int &cap);
const char *parse (const char *buf, ACE_CString &cap);
int fillent(const char *ent);
int parseent (const char *name, char *line);
int getline (FILE* fp, ACE_CString &line);
int is_entry (const char *name, const char *line);
void resetcaps (void);
private:
ACE_Hash_Map_Manager<ACE_CString, ACE_CapEntry *, ACE_Null_Mutex> caps_;};
ACE_IntCapEntry
(integer), ACE_BoolCapEntry
(bool) and
ACE_StringCapEntry
(String). An ACE_Capabilities
is a
unordered set of pair = (String
, ACE_CapEntry
*). Where
the first component is the name of capability and the second
component is a pointer to the capability value container. A
FILE
is a container for ACE_Capabilities
, the
ACE_Capabilities
has a name in the file, as a termcap file.
ACE_Capabilities (void);
~ACE_Capabilities(void);
int getval (const char *ent, ACE_CString &val);
int getval (const char *ent, int &val);
int getent (const char *fname, const char *name);
const char *parse (const char *buf, int &cap);
const char *parse (const char *buf, ACE_CString &cap);
int fillent(const char *ent);
int parseent (const char *name, char *line);
int getline (FILE* fp, ACE_CString &line);
int is_entry (const char *name, const char *line);
void resetcaps (void);
ACE_Hash_Map_Manager<ACE_CString, ACE_CapEntry *, ACE_Null_Mutex> caps_;
mitosys@colomsat.net.co