HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fileFormat.h File Reference
#include "pxr/pxr.h"
#include "pxr/usd/sdf/api.h"
#include "pxr/usd/sdf/declareHandles.h"
#include "pxr/base/tf/declarePtrs.h"
#include "pxr/base/tf/refBase.h"
#include "pxr/base/tf/staticTokens.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
#include "pxr/base/tf/weakBase.h"
#include <hboost/noncopyable.hpp>
#include <map>
#include <string>
#include <vector>
+ Include dependency graph for fileFormat.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SdfFileFormat
 
class  Sdf_FileFormatFactoryBase
 Base file format factory. More...
 
class  Sdf_FileFormatFactory< T >
 Default file format factory. More...
 

Macros

#define SDF_FILE_FORMAT_TOKENS   ((TargetArg, "target"))
 
#define SDF_DEFINE_FILE_FORMAT(c,...)
 
#define SDF_DEFINE_ABSTRACT_FILE_FORMAT(c,...)
 
#define SDF_FILE_FORMAT_FACTORY_ACCESS   template<typename T> friend class Sdf_FileFormatFactory
 

Functions

 SDF_DECLARE_HANDLES (SdfLayer)
 
 SDF_DECLARE_HANDLES (SdfSpec)
 
 TF_DECLARE_WEAK_AND_REF_PTRS (SdfAbstractData)
 
 TF_DECLARE_WEAK_AND_REF_PTRS (SdfFileFormat)
 
 TF_DECLARE_PUBLIC_TOKENS (SdfFileFormatTokens, SDF_API, SDF_FILE_FORMAT_TOKENS)
 

Macro Definition Documentation

#define SDF_DEFINE_ABSTRACT_FILE_FORMAT (   c,
  ... 
)
Value:
TfType::Define<c HBOOST_PP_COMMA_IF(TF_NUM_ARGS(__VA_ARGS__)) \
HBOOST_PP_IF(TF_NUM_ARGS(__VA_ARGS__), \
TfType::Bases<__VA_ARGS__>, HBOOST_PP_EMPTY) >();
static TfType const & Define()
Definition: type_Impl.h:90
const GLfloat * c
Definition: glew.h:16296
#define TF_NUM_ARGS(...)

Defines a file format without a factory. This macro is intended for use in a TfType registry function block. It defines a type for the first argument, with optional bases as additional arguments.

Definition at line 377 of file fileFormat.h.

#define SDF_DEFINE_FILE_FORMAT (   c,
  ... 
)
Value:
TfType::Define<c HBOOST_PP_COMMA_IF(TF_NUM_ARGS(__VA_ARGS__)) \
HBOOST_PP_IF(TF_NUM_ARGS(__VA_ARGS__), \
TfType::Bases<__VA_ARGS__>, HBOOST_PP_EMPTY) >() \
.SetFactory<Sdf_FileFormatFactory<c> >()
static TfType const & Define()
Definition: type_Impl.h:90
const GLfloat * c
Definition: glew.h:16296
Default file format factory.
Definition: fileFormat.h:357
#define TF_NUM_ARGS(...)

Defines a file format and factory. This macro is intended for use in a TfType registry function block. It defines a type for the first argument, with optional bases as additional arguments, and adds a factory.

Definition at line 368 of file fileFormat.h.

#define SDF_FILE_FORMAT_FACTORY_ACCESS   template<typename T> friend class Sdf_FileFormatFactory

Definition at line 382 of file fileFormat.h.

#define SDF_FILE_FORMAT_TOKENS   ((TargetArg, "target"))

Definition at line 54 of file fileFormat.h.

Function Documentation

SDF_DECLARE_HANDLES ( SdfLayer  )
SDF_DECLARE_HANDLES ( SdfSpec  )
TF_DECLARE_PUBLIC_TOKENS ( SdfFileFormatTokens  ,
SDF_API  ,
SDF_FILE_FORMAT_TOKENS   
)
TF_DECLARE_WEAK_AND_REF_PTRS ( SdfAbstractData  )
TF_DECLARE_WEAK_AND_REF_PTRS ( SdfFileFormat  )