This class is derived from GPL_HashTable<WBA_Argument, GPL_String>,
with the GPL_String (the table key) being the
argument key.
PARENTS
GPL_HashTable<WBA_Argument, GPL_String>
public
CONSTRUCTOR
WBA_ArgumentTable(long a_table_size) : GPL_HashTable<WBA_Argument, GPL_String>(a_table_size)
Create a WBA_ArgumentTable of size a_table_size. Typically,
the user will not create a WBA_ArgumentTable except as a data
member of WBA_Environment.
MEMBER FUNCTIONS
void Set(const GPL_String &key, const GPL_String &value, const GPL_String &descrip, long alias_cnt, ...)
Set the data for the argument matching key. If no such argument
exists one is created. The alias_cnt specifies how many char *
specified aliases follow.
void SetQuiet(const GPL_String &key, const GPL_String &value, const GPL_String &descrip, long alias_cnt, ...)
This is the same as the above Set() except that the argument is set to quiet.
See WBA_Argument::SetQuiet().
void Set(const GPL_String &key)
Calls the above Set() with no value, no description, and no aliases.
void SetQuiet(const GPL_String &key)
Calls the above SetQuiet() with no value, no description, and no aliases.
WBA_Argument *Find(const char *key)
WBA_Argument *Find(const GPL_String &key)
Return the argument matching key. The alias lists are checked
if the initial lookup of keys fails to match. This means that if an
argument has an alias that is the same as the primary key of another
argument, the argument with the primary key match will be returned.
char **BuildEnvp()
Return a pointer to strings in the same format as for envp in main(). This
construct is compatible with osdSpawnve() and execve() as well. This function
allocates memory for both the (char **) and the individual (char *) entities.
It is the caller's responsibility to manage these.
void FreeEnvp(char **envp)
Free the type of construct allocated in BuildEnvp.