1#ifndef _ATTRIBUTE_MAP_H_
2#define _ATTRIBUTE_MAP_H_
3#include "mspass/utility/AntelopePf.h"
4#include "mspass/utility/Metadata.h"
78 friend std::ostream &operator<<(std::ostream &ofs,
182 std::map<std::string, AttributeProperties>
185 std::map<std::string, AttributeProperties>
aliases(
const char *key)
const;
205 std::list<std::string>
aliastables(
const char *key)
const;
216 bool is_alias(
const char *key)
const;
233 std::map<std::string, std::list<std::string>> aliasmap;
C++ object version of a parameter file.
Definition AntelopePf.h:61
An object to map internal and external attribute names.
Definition AttributeMap.h:99
std::map< std::string, AttributeProperties > attributes
Maps internal to external names. This object is little more than a wrapper around this Standard Templ...
Definition AttributeMap.h:116
AttributeMap(const std::string tag)
Create mapping for a specified namespace tag (usually a schema name).
AttributeMap()
Default constructor. The default assumes the css3.0 schema and will load the name definitions defined...
Definition AttributeMap.cc:219
AttributeProperties operator[](const std::string key) const
Definition AttributeMap.cc:320
AttributeMap & operator=(const AttributeMap &am0)
Definition AttributeMap.cc:227
std::map< std::string, AttributeProperties > aliases(const std::string key) const
bool is_alias(const std::string key) const
std::list< std::string > aliastables(const std::string key) const
Defines properties of a database attribute and link to internal names.
Definition AttributeMap.h:23
AttributeProperties(const std::string)
Create using a string description. The standard construction of an associative array uses this constr...
std::string db_attribute_name
Definition AttributeMap.h:26
std::string db_table_name
Database table name from which this attribute was loaded. Relational databases always share attribute...
Definition AttributeMap.h:36
std::string fully_qualified_name() const
Returns full name.
Definition AttributeMap.cc:118
std::string internal_name
Definition AttributeMap.h:38
AttributeProperties()
Definition AttributeMap.cc:13
bool is_key
Defines if parameter is a key in it's parent table. Keys in a relational database are special attribu...
Definition AttributeMap.h:45
AttributeProperties & operator=(const AttributeProperties &)
Standard assignment operator.
Definition AttributeMap.cc:108
MDtype mdt
Definition AttributeMap.h:40