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); }
GLenum GLuint GLsizei bufsize
Definition: glcorearb.h:1818
Definition: core.h:760
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
GLuint GLfloat * val
Definition: glcorearb.h:1608
#define SIZE
Definition: simple.C:41

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 */
GLenum GLuint GLsizei bufsize
Definition: glcorearb.h:1818
GLfloat f
Definition: glcorearb.h:1926
Definition: core.h:760
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
GLuint GLfloat * val
Definition: glcorearb.h:1608

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   
)