BRL-CAD
db5_attr_registry.cpp File Reference
#include "common.h"
#include <map>
#include <string>
#include "raytrace.h"
Include dependency graph for db5_attr_registry.cpp:

Go to the source code of this file.

Macros

#define attr_regmap_t   std::map<std::string, struct db5_attr_ctype *>
 
#define attr_regmap_it   std::map<std::string, struct db5_attr_ctype *>::iterator
 

Functions

void db5_attr_registry_init (struct db5_registry *registry)
 
void db5_attr_registry_free (struct db5_registry *registry)
 
int db5_attr_create (struct db5_registry *registry, int attr_type, int is_binary, int attr_subtype, const char *name, const char *description, const char *examples, const char *aliases, const char *property, const char *long_description)
 
int db5_attr_register (struct db5_registry *registry, struct db5_attr_ctype *attribute)
 
int db5_attr_deregister (struct db5_registry *registry, const char *name)
 
struct db5_attr_ctype * db5_attr_get (struct db5_registry *registry, const char *name)
 
struct db5_attr_ctype ** db5_attr_dump (struct db5_registry *registry)
 
HIDDEN void db5_attr_ctype_free (struct db5_attr_ctype *attr)
 

Macro Definition Documentation

#define attr_regmap_t   std::map<std::string, struct db5_attr_ctype *>
#define attr_regmap_it   std::map<std::string, struct db5_attr_ctype *>::iterator

Function Documentation

void db5_attr_registry_init ( struct db5_registry *  registry)

Definition at line 54 of file db5_attr_registry.cpp.

References attr_regmap_t.

void db5_attr_registry_free ( struct db5_registry *  registry)

Definition at line 73 of file db5_attr_registry.cpp.

References attr_regmap_it, attr_regmap_t, and db5_attr_ctype_free().

Here is the call graph for this function:

int db5_attr_create ( struct db5_registry *  registry,
int  attr_type,
int  is_binary,
int  attr_subtype,
const char *  name,
const char *  description,
const char *  examples,
const char *  aliases,
const char *  property,
const char *  long_description 
)

Definition at line 86 of file db5_attr_registry.cpp.

References attr_regmap_t, bu_calloc(), and bu_strdup.

Here is the call graph for this function:

int db5_attr_register ( struct db5_registry *  registry,
struct db5_attr_ctype *  attribute 
)

Definition at line 117 of file db5_attr_registry.cpp.

References attr_regmap_it, and attr_regmap_t.

int db5_attr_deregister ( struct db5_registry *  registry,
const char *  name 
)

Definition at line 130 of file db5_attr_registry.cpp.

References attr_regmap_it, attr_regmap_t, and db5_attr_ctype_free().

Here is the call graph for this function:

struct db5_attr_ctype * db5_attr_get ( struct db5_registry *  registry,
const char *  name 
)

Definition at line 146 of file db5_attr_registry.cpp.

References attr_regmap_it, and attr_regmap_t.

struct db5_attr_ctype ** db5_attr_dump ( struct db5_registry *  registry)

Definition at line 158 of file db5_attr_registry.cpp.

References attr_regmap_it, attr_regmap_t, and bu_calloc().

Here is the call graph for this function:

HIDDEN void db5_attr_ctype_free ( struct db5_attr_ctype *  attr)

Definition at line 61 of file db5_attr_registry.cpp.

References bu_free().

Referenced by db5_attr_deregister(), and db5_attr_registry_free().

Here is the call graph for this function: