/usr/include/citygml/object.h is in libcitygml-dev 2.0-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | #pragma once
#include <string>
#include <map>
#include <citygml/citygml_api.h>
namespace citygml {
typedef std::map< std::string, std::string > AttributesMap;
/**
* @brief The base object associated with an unique id and a set of attributes (key-value pairs)
*/
class LIBCITYGML_EXPORT Object
{
public:
Object( const std::string& id );
const std::string& getId() const;
std::string getAttribute( const std::string& name ) const;
const AttributesMap& getAttributes() const;
AttributesMap& getAttributes();
virtual ~Object() {}
void setAttribute(const std::string& name, const std::string& value, bool overwrite = true );
protected:
std::string m_id;
AttributesMap m_attributes;
};
std::ostream& operator<<( std::ostream&, const citygml::Object& );
}
|