HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
typedesc.h File Reference
#include <cmath>
#include <cstddef>
#include <iostream>
#include <limits>
#include <OpenImageIO/dassert.h>
#include <OpenImageIO/export.h>
#include <OpenImageIO/oiioversion.h>
#include <OpenImageIO/string_view.h>
+ Include dependency graph for typedesc.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TypeDesc
 
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 >
 

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=",")
 

Detailed Description

The TypeDesc class is used to describe simple data types.

Definition in file typedesc.h.

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.