OpenVDB
3.0.0
|
Subclass to read (and ignore) data of an unregistered type. More...
#include <Metadata.h>
Inherits Metadata.
Public Types | |
typedef boost::shared_ptr< Metadata > | Ptr |
typedef boost::shared_ptr< const Metadata > | ConstPtr |
Public Member Functions | |
UnknownMetadata () | |
virtual | ~UnknownMetadata () |
virtual Name | typeName () const |
virtual Metadata::Ptr | copy () const |
virtual void | copy (const Metadata &) |
Copy value from the given metadata into the curent metadata. More... | |
virtual std::string | str () const |
virtual bool | asBool () const |
virtual Index32 | size () const |
void | read (std::istream &) |
Read the attribute from a stream. More... | |
void | write (std::ostream &) const |
Write the attribute to a stream. More... | |
Static Public Member Functions | |
static Metadata::Ptr | createMetadata (const Name &typeName) |
Creates a new Metadata from the metadata type registry. More... | |
static bool | isRegisteredType (const Name &typeName) |
Return true if the given type is known by the metadata type registry. More... | |
static void | clearRegistry () |
Clear out the metadata registry. More... | |
static void | registerType (const Name &typeName, Metadata::Ptr(*createMetadata)()) |
Register the given metadata type along with a factory function. More... | |
static void | unregisterType (const Name &typeName) |
Protected Member Functions | |
virtual void | readValue (std::istream &s, Index32 numBytes) |
Read the attribute from a stream. More... | |
virtual void | writeValue (std::ostream &) const |
Write the attribute to a stream. More... | |
void | writeSize (std::ostream &) const |
Write the size of the attribute to a stream. More... | |
Static Protected Member Functions | |
static Index32 | readSize (std::istream &) |
Read the size of the attribute from a stream. More... | |
Subclass to read (and ignore) data of an unregistered type.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Return the boolean representation of this metadata (empty strings and zeroVals evaluate to false; most other values evaluate to true).
Implements Metadata.
|
staticinherited |
Clear out the metadata registry.
|
inlinevirtual |
Implements Metadata.
|
inlinevirtual |
Copy value from the given metadata into the curent metadata.
Implements Metadata.
|
staticinherited |
Creates a new Metadata from the metadata type registry.
|
staticinherited |
Return true
if the given type is known by the metadata type registry.
|
inlineinherited |
Read the attribute from a stream.
|
inlinestaticprotectedinherited |
Read the size of the attribute from a stream.
|
protectedvirtual |
Read the attribute from a stream.
Implements Metadata.
|
staticinherited |
Register the given metadata type along with a factory function.
|
inlinevirtual |
Implements Metadata.
|
inlinevirtual |
|
inlinevirtual |
Implements Metadata.
|
staticinherited |
|
inlineinherited |
Write the attribute to a stream.
|
inlineprotectedinherited |
Write the size of the attribute to a stream.
|
protectedvirtual |
Write the attribute to a stream.
Implements Metadata.