OpenImageIO
|
#include <limits>
#include <cmath>
#include <cstddef>
#include <iostream>
#include "export.h"
#include "version.h"
Go to the source code of this file.
Classes | |
struct | BaseTypeFromC< T > |
struct | BaseTypeFromC< unsigned char > |
struct | BaseTypeFromC< char > |
struct | BaseTypeFromC< unsigned short > |
struct | BaseTypeFromC< short > |
struct | BaseTypeFromC< unsigned int > |
struct | BaseTypeFromC< int > |
struct | BaseTypeFromC< unsigned long long > |
struct | BaseTypeFromC< long long > |
struct | BaseTypeFromC< float > |
struct | BaseTypeFromC< double > |
struct | CType< b > |
struct | CType<(int) TypeDesc::UINT8 > |
struct | CType<(int) TypeDesc::INT8 > |
struct | CType<(int) TypeDesc::UINT16 > |
struct | CType<(int) TypeDesc::INT16 > |
struct | CType<(int) TypeDesc::UINT > |
struct | CType<(int) TypeDesc::INT > |
struct | CType<(int) TypeDesc::UINT64 > |
struct | CType<(int) TypeDesc::INT64 > |
struct | CType<(int) TypeDesc::FLOAT > |
struct | CType<(int) TypeDesc::DOUBLE > |
Typedefs | |
typedef TypeDesc | ParamType |
typedef TypeDesc | ParamBaseType |
Functions | |
std::string | tostring (TypeDesc type, const void *data, const char *float_fmt="%f", const char *string_fmt="%s", const char aggregate_delim[2]="()", const char *aggregate_sep=",", const char array_delim[2]="{}", const char *array_sep=",") |
Variables | |
OIIO_NAMESPACE_ENTER | |
The TypeDesc class is used to describe simple data types.
std::string tostring | ( | TypeDesc | type, |
const void * | data, | ||
const char * | float_fmt = "%f" , |
||
const char * | string_fmt = "%s" , |
||
const char | aggregate_delim[2] = "()" , |
||
const char * | aggregate_sep = "," , |
||
const char | array_delim[2] = "{}" , |
||
const char * | array_sep = "," |
||
) |
Return a string containing the data values formatted according to the type and the optional formatting arguments.