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:1817
GLuint buffer
Definition: glcorearb.h:659
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
GLuint GLfloat * val
Definition: glcorearb.h:1607
#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 */
GLenum GLuint GLsizei bufsize
Definition: glcorearb.h:1817
GLuint buffer
Definition: glcorearb.h:659
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
GLuint GLfloat * val
Definition: glcorearb.h:1607
GLfloat f
Definition: glcorearb.h:1925

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   
)