24 #ifndef PXR_USD_SDF_FILE_FORMAT_H
25 #define PXR_USD_SDF_FILE_FORMAT_H
55 #define SDF_FILE_FORMAT_TOKENS \
56 ((TargetArg, "target"))
132 virtual SdfAbstractDataRefPtr
186 bool metadataOnly)
const = 0;
204 bool metadataOnly)
const;
228 const SdfSpecHandle &spec,
230 size_t indent)
const;
328 static SdfFileFormatConstPtr
FindById(
386 const std::vector<std::string> &extensions);
394 const std::vector<std::string> &extensions,
402 const std::vector<std::string> &extensions,
454 bool* didCopyData =
nullptr)
const;
459 const SdfFileFormatConstPtr &fileFormat,
502 bool metadataOnly)
const;
510 const std::vector<std::string> _extensions;
511 const bool _isPrimaryFormat;
518 virtual SdfFileFormatRefPtr
New()
const = 0;
522 template <
typename T>
525 virtual SdfFileFormatRefPtr
New()
const
553 #define SDF_DEFINE_FILE_FORMAT(FileFormatClass, BaseClass1, ...)
555 #define SDF_DEFINE_FILE_FORMAT(...) SdfDefineFileFormat<__VA_ARGS__>()
557 template <
class FileFormat,
class ...BaseFormats>
587 #define SDF_DEFINE_ABSTRACT_FILE_FORMAT(FileFormatClass, BaseClass1, ...)
589 #define SDF_DEFINE_ABSTRACT_FILE_FORMAT(...) \
590 SdfDefineAbstractFileFormat<__VA_ARGS__>()
592 template <
class FileFormat,
class ...BaseFormats>
617 #define SDF_FILE_FORMAT_FACTORY_ACCESS
619 #define SDF_FILE_FORMAT_FACTORY_ACCESS \
620 template<typename T> friend class Sdf_FileFormatFactory
TfRefPtr< T > TfCreateRefPtr(T *ptr)
GLsizei const GLchar *const * string
GLsizei const GLchar *const * path
GLenum GLuint GLint GLint layer
Base class of all factory types.
static TfType const & Define()
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
**If you just want to fire and args
OIIO_UTIL_API std::string extension(string_view filepath, bool include_dot=true) noexcept