buf
into an argv
style vector of
strings or an argv
style vector of string buf
, performing
environment variable substitutions if necessary.
#include <ace/ARGV.h> class ACE_ARGV {
public:
ACE_ARGV (char buf[], int substitute_env_args = 1);
ACE_ARGV (char *argv[], int substitute_env_args = 1);
~ACE_ARGV (void);
char *operator[] (int index) const;
char **argv (void) const;
size_t argc (void) const;
char *buf (void) const;
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;
private:
size_t argc_;
char **argv_;
char *buf_;
};
ACE_ARGV (char buf[], int substitute_env_args = 1);
buf
into an argv
-style vector of strings. If
substitute_env_args
is enabled then we'll substitute the
environment variables for each $ENV encountered in the string.
ACE_ARGV (char *argv[], int substitute_env_args = 1);
argv
into a linear string. If substitute_env_args
is enabled then we'll substitute the environment variables for
each $ENV encountered in the string.
~ACE_ARGV (void);
char *operator[] (int index) const;
index
th string in the ARGV array.
char **argv (void) const;
argv
array. Caller should not delete this memory
since the ARGV
destructor will delete it.
size_t argc (void) const;
argc
.
char *buf (void) const;
buf
. Caller should not delete this memory since
the ARGV
destructor will delete it.
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;