Osmium  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Attributes | Private Attributes
Osmium::OSM::Tag Class Reference

#include <tag.hpp>

Collaboration diagram for Osmium::OSM::Tag:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Tag (const char *key, const char *value)
const char * key () const
const char * value () const

Static Public Attributes

static const int max_utf16_length_key = 2 * (255 + 1)
 maximum number of UTF-16 units
static const int max_utf16_length_value = 2 * (255 + 1)

Private Attributes

std::string m_key
std::string m_value

Detailed Description

An OSM tag.

Tag keys and values are not allowed to be longer than 255 characters each, but this is not checked by this class.


Constructor & Destructor Documentation

Osmium::OSM::Tag::Tag ( const char *  key,
const char *  value 
) [inline]

Member Function Documentation

const char* Osmium::OSM::Tag::key ( ) const [inline]
const char* Osmium::OSM::Tag::value ( ) const [inline]

Member Data Documentation

std::string Osmium::OSM::Tag::m_key [private]
std::string Osmium::OSM::Tag::m_value [private]
const int Osmium::OSM::Tag::max_utf16_length_key = 2 * (255 + 1) [static]

maximum number of UTF-16 units

const int Osmium::OSM::Tag::max_utf16_length_value = 2 * (255 + 1) [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines