HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
XUSD_Format.h File Reference
+ Include dependency graph for XUSD_Format.h:

Go to the source code of this file.

Macros

#define FORMAT_VAL(TYPE, GET_VAL)
 Format for a TfToken. More...
 
#define FORMAT_TYPE(TYPE, METHOD, SIZE)
 

Functions

 FORMAT_VAL (TfToken, GetString)
 
 FORMAT_VAL (SdfAssetPath, GetAssetPath)
 
 FORMAT_VAL (SdfTimeCode, GetValue)
 

Macro Definition Documentation

#define FORMAT_TYPE (   TYPE,
  METHOD,
  SIZE 
)
Value:
static SYS_FORCE_INLINE size_t \
format(char *buffer, size_t bufsize, const TYPE &val) \
{ return formatVector(buffer, bufsize, val.METHOD(), SIZE); }
GLsizei bufsize
Definition: glew.h:2581
GLuint const GLfloat * val
Definition: glew.h:2794
GLuint buffer
Definition: glew.h:1680
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
#define SIZE
Definition: simple.C:40

Definition at line 166 of file XUSD_Format.h.

#define FORMAT_VAL (   TYPE,
  GET_VAL 
)
Value:
static SYS_FORCE_INLINE size_t \
format(char *buffer, size_t bufsize, const TYPE &val) \
{ \
UT::Format::Writer writer(buffer, bufsize); \
UT::Format::Formatter<> f; \
return f.format(writer, "{}", {val.GET_VAL()}); \
}; \
/* end of macro */
GLsizei bufsize
Definition: glew.h:2581
GLuint const GLfloat * val
Definition: glew.h:2794
basic_writer< back_insert_range< internal::buffer > > writer
Definition: format.h:361
GLclampf f
Definition: glew.h:3499
GLuint buffer
Definition: glew.h:1680
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45

Format for a TfToken.

Definition at line 64 of file XUSD_Format.h.

Function Documentation

FORMAT_VAL ( TfToken  ,
GetString   
)
FORMAT_VAL ( SdfAssetPath  ,
GetAssetPath   
)
FORMAT_VAL ( SdfTimeCode  ,
GetValue   
)