26 #ifndef __IMG_FileOpt__
27 #define __IMG_FileOpt__
67 int64 mem = inclusive ?
sizeof(*this) : 0;
68 mem += myToken.getMemoryUsage(
false);
69 mem += myValue.getMemoryUsage(
false);
73 const char *
getToken()
const {
return myToken; }
74 const char *
getValue()
const {
return myValue; }
98 int64 getMemoryUsage(
bool inclusive)
const;
100 void setTag(
const char *
name,
const char *
value,
102 void removeTag(
const char *name);
104 const char *getTag(
const char *name)
const;
106 int getTagIndex(
const char *name)
const;
107 int entries()
const {
return myList.entries(); }
112 unsigned myOwnListFlag:1,
121 const char *defvalue = 0,
129 myDefault = defvalue;
133 const char *
getToken()
const {
return myName.getToken(); }
134 const char *
getLabel()
const {
return myName.getValue(); }
139 myDefault.harden(str);
144 int hasMenu()
const {
return myMenu.entries(); }
171 int entries()
const {
return myList.entries(); }
const IMG_FileOption * getOption(int i) const
GLuint GLsizei const GLchar * label
const char * getToken() const
const char * getToken() const
GLsizei const GLfloat * value
ImageBuf OIIO_API min(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
const IMG_FileTag * getTag(int i) const
void setToken(const char *t)
IMG_FileOption(IMG_FileOptionHint hint=IMG_OPTION_TERMINATOR, const char *name=0, const char *label=0, const char *defvalue=0, IMG_FileTag *menu=0, fpreal min=1, fpreal max=0, IMG_FileOptionScope scope=IMG_FILE_SCOPE_OUT)
int64 getMemoryUsage(bool inclusive) const
IMG_FileOptionHint getHint() const
const char * getValue() const
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
const char * getDefault() const
GLuint const GLchar * name
const IMG_FileTagList & getMenu() const
IMG_FileOptionScope getScope() const
IMG_FileTag(const char *token=0, const char *value=0)
const char * getLabel() const
ImageBuf OIIO_API max(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
void setValue(const char *v)
void setDefault(const char *str)