OpenImageIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Functions | Variables
typedesc.h File Reference
#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 >
 

Macros

#define NULL   0
 
#define PT_FLOAT   TypeDesc::FLOAT
 
#define PT_UINT8   TypeDesc::UCHAR
 
#define PT_INT8   TypeDesc::CHAR
 
#define PT_UINT16   TypeDesc::USHORT
 
#define PT_INT16   TypeDesc::SHORT
 
#define PT_UINT   TypeDesc::UINT
 
#define PT_INT   TypeDesc::INT
 
#define PT_FLOAT   TypeDesc::FLOAT
 
#define PT_DOUBLE   TypeDesc::DOUBLE
 
#define PT_HALF   TypeDesc::HALF
 
#define PT_MATRIX   TypeDesc(TypeDesc::FLOAT,TypeDesc::MATRIX44)
 
#define PT_STRING   TypeDesc::STRING
 
#define PT_UNKNOWN   TypeDesc::UNKNOWN
 
#define PT_COLOR   TypeDesc(TypeDesc::FLOAT,TypeDesc::VEC3,TypeDesc::COLOR)
 
#define PT_POINT   TypeDesc(TypeDesc::FLOAT,TypeDesc::VEC3,TypeDesc::POINT)
 
#define PT_VECTOR   TypeDesc(TypeDesc::FLOAT,TypeDesc::VEC3,TypeDesc::VECTOR)
 
#define PT_NORMAL   TypeDesc(TypeDesc::FLOAT,TypeDesc::VEC3,TypeDesc::NORMAL)
 

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
 

Detailed Description

The TypeDesc class is used to describe simple data types.

Function Documentation

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.