7#ifndef PXR_USD_SDF_CRATE_INFO_H
8#define PXR_USD_SDF_CRATE_INFO_H
11#include "pxr/usd/sdf/api.h"
20PXR_NAMESPACE_OPEN_SCOPE
33 Section(std::string
const &name, int64_t start, int64_t size)
34 : name(name), start(start), size(size) {}
36 int64_t start = -1, size = -1;
41 size_t numUniquePaths = 0;
42 size_t numUniqueTokens = 0;
43 size_t numUniqueStrings = 0;
44 size_t numUniqueFields = 0;
45 size_t numUniqueFieldSets = 0;
69 explicit operator bool()
const {
return (
bool)_impl; }
74 std::shared_ptr<_Impl> _impl;
78PXR_NAMESPACE_CLOSE_SCOPE
A class for introspecting the underlying qualities of .usdc 'crate' files, for diagnostic purposes.
SDF_API std::vector< Section > GetSections() const
Return the named file sections, their location and sizes in the file.
static SDF_API SdfCrateInfo Open(std::string const &fileName)
Attempt to open and read fileName.
SDF_API TfToken GetSoftwareVersion() const
Return the software version.
SDF_API SummaryStats GetSummaryStats() const
Return summary statistics structure for this file.
SDF_API TfToken GetFileVersion() const
Return the file version.
Token for efficient comparison, assignment, and hashing of known strings.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...