24#ifndef PXR_USD_USD_CRATE_INFO_H
25#define PXR_USD_USD_CRATE_INFO_H
28#include "pxr/usd/usd/api.h"
37PXR_NAMESPACE_OPEN_SCOPE
50 Section(std::string
const &name, int64_t start, int64_t size)
51 : name(name), start(start), size(size) {}
53 int64_t start = -1, size = -1;
58 size_t numUniquePaths = 0;
59 size_t numUniqueTokens = 0;
60 size_t numUniqueStrings = 0;
61 size_t numUniqueFields = 0;
62 size_t numUniqueFieldSets = 0;
86 explicit operator bool()
const {
return (
bool)_impl; }
91 std::shared_ptr<_Impl> _impl;
95PXR_NAMESPACE_CLOSE_SCOPE
Token for efficient comparison, assignment, and hashing of known strings.
A class for introspecting the underlying qualities of .usdc 'crate' files, for diagnostic purposes.
USD_API std::vector< Section > GetSections() const
Return the named file sections, their location and sizes in the file.
USD_API SummaryStats GetSummaryStats() const
Return summary statistics structure for this file.
USD_API TfToken GetFileVersion() const
Return the file version.
static USD_API UsdCrateInfo Open(std::string const &fileName)
Attempt to open and read fileName.
USD_API TfToken GetSoftwareVersion() const
Return the software version.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...