7#ifndef PXR_USD_USD_CRATE_INFO_H
8#define PXR_USD_USD_CRATE_INFO_H
11#include "pxr/usd/usd/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
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...