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

Go to the source code of this file.

Classes

class  SdfFileFormat
 Base class for file format implementations. More...
 

Macros

#define SDF_FILE_FORMAT_TOKENS   ((TargetArg, "target"))
 
#define SDF_DEFINE_FILE_FORMAT(c,...)
 Defines a file format and factory. More...
 
#define SDF_DEFINE_ABSTRACT_FILE_FORMAT(c,...)
 Defines a file format without a factory. More...
 
#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 BOOST_PP_COMMA_IF(TF_NUM_ARGS(__VA_ARGS__)) \
BOOST_PP_IF(TF_NUM_ARGS(__VA_ARGS__), \
TfType::Bases<__VA_ARGS__>, BOOST_PP_EMPTY) >();
A type-list of C++ base types.
Definition: type.h:106
static TfType const & Define()
Define a TfType with the given C++ type T and C++ base types B.
Definition: type_Impl.h:78
#define TF_NUM_ARGS(...)
Count the number of arguments.

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 366 of file fileFormat.h.

#define SDF_DEFINE_FILE_FORMAT (   c,
  ... 
)
Value:
TfType::Define<c BOOST_PP_COMMA_IF(TF_NUM_ARGS(__VA_ARGS__)) \
BOOST_PP_IF(TF_NUM_ARGS(__VA_ARGS__), \
TfType::Bases<__VA_ARGS__>, BOOST_PP_EMPTY) >() \
.SetFactory<Sdf_FileFormatFactory<c> >()
A type-list of C++ base types.
Definition: type.h:106
static TfType const & Define()
Define a TfType with the given C++ type T and C++ base types B.
Definition: type_Impl.h:78
#define TF_NUM_ARGS(...)
Count the number of arguments.

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 357 of file fileFormat.h.