HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openvdb::OPENVDB_VERSION_NAME::UnknownMetadata Class Reference

Subclass to hold raw data of an unregistered type. More...

#include <Metadata.h>

+ Inheritance diagram for openvdb::OPENVDB_VERSION_NAME::UnknownMetadata:

Public Types

using ByteVec = std::vector< uint8_t >
 

Public Member Functions

 UnknownMetadata (const Name &typ="<unknown>")
 
Name typeName () const override
 Return the type name of the metadata. More...
 
Metadata::Ptr copy () const override
 Return a copy of the metadata. More...
 
void copy (const Metadata &) override
 Copy the given metadata into this metadata. More...
 
std::string str () const override
 Return a textual representation of this metadata. More...
 
bool asBool () const override
 
Index32 size () const override
 Return the size of this metadata in bytes. More...
 
void setValue (const ByteVec &bytes)
 
const ByteVecvalue () const
 

Protected Member Functions

void readValue (std::istream &, Index32 numBytes) override
 Read the metadata from a stream. More...
 
void writeValue (std::ostream &) const override
 Write the metadata to a stream. More...
 

Additional Inherited Members

Detailed Description

Subclass to hold raw data of an unregistered type.

Definition at line 121 of file Metadata.h.

Member Typedef Documentation

Definition at line 124 of file Metadata.h.

Constructor & Destructor Documentation

openvdb::OPENVDB_VERSION_NAME::UnknownMetadata::UnknownMetadata ( const Name typ = "<unknown>")
inlineexplicit

Definition at line 126 of file Metadata.h.

Member Function Documentation

bool openvdb::OPENVDB_VERSION_NAME::UnknownMetadata::asBool ( ) const
inlineoverridevirtual

Return the boolean representation of this metadata (empty strings and zeroVals evaluate to false; most other values evaluate to true).

Implements openvdb::OPENVDB_VERSION_NAME::Metadata.

Definition at line 132 of file Metadata.h.

Metadata::Ptr openvdb::OPENVDB_VERSION_NAME::UnknownMetadata::copy ( ) const
overridevirtual

Return a copy of the metadata.

Implements openvdb::OPENVDB_VERSION_NAME::Metadata.

void openvdb::OPENVDB_VERSION_NAME::UnknownMetadata::copy ( const Metadata other)
overridevirtual

Copy the given metadata into this metadata.

Implements openvdb::OPENVDB_VERSION_NAME::Metadata.

void openvdb::OPENVDB_VERSION_NAME::UnknownMetadata::readValue ( std::istream &  ,
Index32  numBytes 
)
overrideprotectedvirtual

Read the metadata from a stream.

Implements openvdb::OPENVDB_VERSION_NAME::Metadata.

void openvdb::OPENVDB_VERSION_NAME::UnknownMetadata::setValue ( const ByteVec bytes)
inline

Definition at line 135 of file Metadata.h.

Index32 openvdb::OPENVDB_VERSION_NAME::UnknownMetadata::size ( ) const
inlineoverridevirtual

Return the size of this metadata in bytes.

Implements openvdb::OPENVDB_VERSION_NAME::Metadata.

Definition at line 133 of file Metadata.h.

std::string openvdb::OPENVDB_VERSION_NAME::UnknownMetadata::str ( ) const
inlineoverridevirtual

Return a textual representation of this metadata.

Implements openvdb::OPENVDB_VERSION_NAME::Metadata.

Definition at line 131 of file Metadata.h.

Name openvdb::OPENVDB_VERSION_NAME::UnknownMetadata::typeName ( ) const
inlineoverridevirtual

Return the type name of the metadata.

Implements openvdb::OPENVDB_VERSION_NAME::Metadata.

Definition at line 128 of file Metadata.h.

const ByteVec& openvdb::OPENVDB_VERSION_NAME::UnknownMetadata::value ( ) const
inline

Definition at line 136 of file Metadata.h.

void openvdb::OPENVDB_VERSION_NAME::UnknownMetadata::writeValue ( std::ostream &  ) const
overrideprotectedvirtual

Write the metadata to a stream.

Implements openvdb::OPENVDB_VERSION_NAME::Metadata.


The documentation for this class was generated from the following file: