13 #ifndef __UT_WorkArgs__
14 #define __UT_WorkArgs__
23 #define UT_INITIAL_ARGV_SIZE 256
30 void appendArg(
const char *text) { setArg(myArgc, text); }
31 void setArg(
int idx,
const char *text);
35 const char *
getArg(
int idx)
const {
return myArgv[idx]; }
36 const char *
const*
getArgv()
const {
return myArgv; }
39 {
return (i < myArgc) ? myArgv[i]:0; }
46 int64 getMemoryUsage(
bool inclusive)
const;
#define UT_INITIAL_ARGV_SIZE
OIIO_UTIL_API bool copy(string_view from, string_view to, std::string &err)
const char *const * iterator
const char * getArg(int idx) const
auto reserve(std::back_insert_iterator< Container > it, size_t n) -> checked_ptr< typename Container::value_type >
LeafData & operator=(const LeafData &)=delete
void appendArg(const char *text)
const char * operator[](int i) const
const char * operator()(int i) const
const char *const * getArgv() const