OpenVDB  7.2.1
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
AXStringMetadata Struct Reference

#include <CustomData.h>

Inherits TypedMetadata< T >.

Public Types

using Ptr = openvdb::SharedPtr< AXStringMetadata >
 
using ConstPtr = openvdb::SharedPtr< const AXStringMetadata >
 

Public Member Functions

 AXStringMetadata (const std::string &string)
 
 AXStringMetadata ()
 
 AXStringMetadata (const AXStringMetadata &other)
 
 ~AXStringMetadata () override
 
openvdb::Metadata::Ptr copy () const override
 Return a copy of the metadata. More...
 
void copy (const openvdb::Metadata &other) override
 Copy the given metadata into this metadata. More...
 
void setValue (const std::string &string)
 
ax::AXStringvalue ()
 
const ax::AXStringvalue () const
 
Name typeName () const override
 Return the type name of the metadata. More...
 
std::string str () const override
 Return a textual representation of this metadata. More...
 
std::string str () const
 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 T &)
 Set this metadata's value. More...
 
bool operator== (const Metadata &other) const
 Return true if the given metadata is equivalent to this metadata. More...
 
bool operator!= (const Metadata &other) const
 Return true if the given metadata is different from this metadata. More...
 
void read (std::istream &)
 Unserialize this metadata from a stream. More...
 
void write (std::ostream &) const
 Serialize this metadata to a stream. More...
 

Static Public Member Functions

static Name staticTypeName ()
 
static Metadata::Ptr createMetadata ()
 Create new metadata of this type. More...
 
static Metadata::Ptr createMetadata (const Name &typeName)
 Create new metadata of the given type. More...
 
static void registerType ()
 
static void registerType (const Name &typeName, Metadata::Ptr(*createMetadata)())
 Register the given metadata type along with a factory function. More...
 
static void unregisterType ()
 
static void unregisterType (const Name &typeName)
 
static bool isRegisteredType ()
 
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...
 

Protected Member Functions

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

Static Protected Member Functions

static Index32 readSize (std::istream &)
 Read the size of the metadata from a stream. More...
 

Member Typedef Documentation

◆ ConstPtr

◆ Ptr

Constructor & Destructor Documentation

◆ AXStringMetadata() [1/3]

AXStringMetadata ( const std::string &  string)
inline

◆ AXStringMetadata() [2/3]

AXStringMetadata ( )
inline

◆ AXStringMetadata() [3/3]

AXStringMetadata ( const AXStringMetadata other)
inline

◆ ~AXStringMetadata()

~AXStringMetadata ( )
inlineoverride

Member Function Documentation

◆ asBool()

bool asBool ( ) const
inlineoverridevirtualinherited

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

Implements Metadata.

◆ clearRegistry()

static void clearRegistry ( )
staticinherited

Clear out the metadata registry.

◆ copy() [1/2]

openvdb::Metadata::Ptr copy ( ) const
inlineoverridevirtual

Return a copy of the metadata.

Reimplemented from TypedMetadata< T >.

◆ copy() [2/2]

void copy ( const openvdb::Metadata other)
inlineoverridevirtual

Copy the given metadata into this metadata.

Reimplemented from TypedMetadata< T >.

◆ createMetadata() [1/2]

Metadata::Ptr createMetadata
inlinestaticinherited

Create new metadata of this type.

◆ createMetadata() [2/2]

static Metadata::Ptr createMetadata ( const Name typeName)
staticinherited

Create new metadata of the given type.

◆ isRegisteredType() [1/2]

bool isRegisteredType
inlinestaticinherited

◆ isRegisteredType() [2/2]

static bool isRegisteredType ( const Name typeName)
staticinherited

Return true if the given type is known by the metadata type registry.

◆ operator!=()

bool operator!= ( const Metadata other) const
inlineinherited

Return true if the given metadata is different from this metadata.

◆ operator==()

bool operator== ( const Metadata other) const
inherited

Return true if the given metadata is equivalent to this metadata.

◆ read()

void read ( std::istream &  is)
inlineinherited

Unserialize this metadata from a stream.

◆ readSize()

Index32 readSize ( std::istream &  is)
inlinestaticprotectedinherited

Read the size of the metadata from a stream.

◆ readValue()

void readValue ( std::istream &  ,
openvdb::Index32  numBytes 
)
inlineoverrideprotectedvirtual

Read the metadata from a stream.

Reimplemented from TypedMetadata< T >.

◆ registerType() [1/2]

void registerType
inlinestaticinherited

◆ registerType() [2/2]

static void registerType ( const Name typeName,
Metadata::Ptr(*)()  createMetadata 
)
staticinherited

Register the given metadata type along with a factory function.

◆ setValue() [1/2]

void setValue ( const std::string &  string)
inline

◆ setValue() [2/2]

void setValue ( const T &  val)
inlineinherited

Set this metadata's value.

◆ size()

Index32 size ( ) const
inlineoverridevirtualinherited

Return the size of this metadata in bytes.

Implements Metadata.

◆ staticTypeName()

static Name staticTypeName ( )
inlinestaticinherited

◆ str() [1/2]

std::string str ( ) const
inlinevirtualinherited

Return a textual representation of this metadata.

Implements Metadata.

◆ str() [2/2]

std::string str ( ) const
inlineoverridevirtualinherited

Return a textual representation of this metadata.

Implements Metadata.

◆ typeName()

Name typeName ( ) const
inlineoverridevirtualinherited

Return the type name of the metadata.

Implements Metadata.

◆ unregisterType() [1/2]

void unregisterType
inlinestaticinherited

◆ unregisterType() [2/2]

static void unregisterType ( const Name typeName)
staticinherited

◆ value() [1/2]

ax::AXString& value ( )
inline

◆ value() [2/2]

const ax::AXString& value ( ) const
inline

◆ write()

void write ( std::ostream &  os) const
inlineinherited

Serialize this metadata to a stream.

◆ writeSize()

void writeSize ( std::ostream &  os) const
inlineprotectedinherited

Write the size of the metadata to a stream.

◆ writeValue()

void writeValue ( std::ostream &  ) const
inlineoverrideprotectedvirtualinherited

Write the metadata to a stream.

Implements Metadata.


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