24 #ifndef PXR_USD_SDF_TEXT_FILE_FORMAT_H
25 #define PXR_USD_SDF_TEXT_FILE_FORMAT_H
40 #define SDF_TEXT_FILE_FORMAT_TOKENS \
42 ((Version, "1.4.32")) \
69 bool metadataOnly)
const override;
91 const SdfSpecHandle &spec,
93 size_t indent)
const override;
120 const std::shared_ptr<ArAsset>& asset)
const;
127 const std::shared_ptr<ArAsset>& asset,
128 bool metadataOnly)
const;
133 SDF_API virtual bool _ShouldSkipAnonymousReload()
const override;
138 #endif // SDF_TEXT_FILE_FORMAT_H
SDF_FILE_FORMAT_FACTORY_ACCESS
virtual SDF_API bool WriteToStream(const SdfSpecHandle &spec, std::ostream &out, size_t indent) const override
Write the provided spec to out indented indent levels.
SDF_API bool _CanReadFromAsset(const std::string &resolvedPath, const std::shared_ptr< ArAsset > &asset) const
Return true if layer can be read from asset at resolvedPath.
GLsizei const GLchar *const * string
virtual SDF_API bool WriteToString(const SdfLayer &layer, std::string *str, const std::string &comment=std::string()) const override
GLenum GLuint GLint GLint layer
virtual SDF_API bool CanRead(const std::string &file) const override
Returns true if file can be read by this format.
SDF_API bool _ReadFromAsset(SdfLayer *layer, const std::string &resolvedPath, const std::shared_ptr< ArAsset > &asset, bool metadataOnly) const
Read layer from asset at resolvedPath into layer.
SDF_DECLARE_HANDLES(SdfSpec)
virtual SDF_API bool WriteToFile(const SdfLayer &layer, const std::string &filePath, const std::string &comment=std::string(), const FileFormatArguments &args=FileFormatArguments()) const override
virtual SDF_API ~SdfTextFileFormat()
Destructor.
#define SDF_TEXT_FILE_FORMAT_TOKENS
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
virtual SDF_API bool Read(SdfLayer *layer, const std::string &resolvedPath, bool metadataOnly) const override
**If you just want to fire and args
TF_DECLARE_WEAK_AND_REF_PTRS(SdfTextFileFormat)
virtual SDF_API bool ReadFromString(SdfLayer *layer, const std::string &str) const override
TF_DECLARE_PUBLIC_TOKENS(SdfTextFileFormatTokens, SDF_API, SDF_TEXT_FILE_FORMAT_TOKENS)
SDF_API SdfTextFileFormat()
Constructor.