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

Classes

struct  LevelScope
 A LevelScope object sets the logging level to a given level and restores it to the current level when the object goes out of scope. More...
 

Enumerations

enum  Level {
  Level::Debug, Level::Info, Level::Warn, Level::Error,
  Level::Fatal
}
 

Functions

Level getLevel ()
 
void setLevel (Level)
 
void setLevel (int &, char *[])
 
void setProgramName (const std::string &, bool=true)
 
void initialize ()
 Global registration of native Grid, Transform, Metadata and Point attribute types. Also initializes blosc (if enabled). More...
 
void initialize (int &, char *[], bool=true)
 

Enumeration Type Documentation

Enumerator
Debug 
Info 
Warn 
Error 
Fatal 

Definition at line 288 of file logging.h.

Function Documentation

Level openvdb::OPENVDB_VERSION_NAME::logging::getLevel ( )
inline

Definition at line 290 of file logging.h.

void openvdb::OPENVDB_VERSION_NAME::logging::initialize ( )
inline

Global registration of native Grid, Transform, Metadata and Point attribute types. Also initializes blosc (if enabled).

Global registration of point data-related types.

Calling this methods registers factory callbacks for the set of native grid, transform, metadata and point attribute types that OpenVDB supports by default. For most types, calling openvdb::initialize is only required for serialization support. However, openvdb::initialize must be called for PointDataGrid attribute usage as these callbacks are used in various tools.

Note
This method is thread safe - it can be concurrently called multiple times, early exiting if it has already been called so long as openvdb::uninitialize() has not been called.

Definition at line 294 of file logging.h.

void openvdb::OPENVDB_VERSION_NAME::logging::initialize ( int ,
char *  [],
bool  = true 
)
inline

Definition at line 295 of file logging.h.

void openvdb::OPENVDB_VERSION_NAME::logging::setLevel ( Level  )
inline

Definition at line 291 of file logging.h.

void openvdb::OPENVDB_VERSION_NAME::logging::setLevel ( int ,
char *  [] 
)
inline

Definition at line 292 of file logging.h.

void openvdb::OPENVDB_VERSION_NAME::logging::setProgramName ( const std::string ,
bool  = true 
)
inline

Definition at line 293 of file logging.h.