Libosmium  2.20.0
Fast and flexible C++ library for working with OpenStreetMap data
Public Member Functions | Private Types | Private Attributes | List of all members
osmium::metadata_options Class Reference

#include <metadata_options.hpp>

Public Member Functions

 metadata_options () noexcept=default
 
 metadata_options (const std::string &attributes)
 
bool any () const noexcept
 At least one metadata attribute should be stored. More...
 
bool all () const noexcept
 All metadata attributes should be stored. More...
 
bool none () const noexcept
 No metadata attributes should be stored. More...
 
bool version () const noexcept
 
void set_version (bool flag) noexcept
 
bool timestamp () const noexcept
 
void set_timestamp (bool flag) noexcept
 
bool changeset () const noexcept
 
void set_changeset (bool flag) noexcept
 
bool uid () const noexcept
 
void set_uid (bool flag) noexcept
 
bool user () const noexcept
 
void set_user (bool flag) noexcept
 
metadata_options operator&= (const metadata_options &other)
 
metadata_options operator|= (const metadata_options &other)
 
std::string to_string () const
 

Private Types

enum  options : unsigned int {
  md_none = 0x00 , md_version = 0x01 , md_timestamp = 0x02 , md_changeset = 0x04 ,
  md_uid = 0x08 , md_user = 0x10 , md_all = 0x1f
}
 

Private Attributes

enum osmium::metadata_options::options m_options = md_all
 

Detailed Description

Describes which metadata fields are available in an OSMObject. This is most often used to describe which metadata fields are available in the objects of an OSM file or which metadata information should be written to an OSM file.

Member Enumeration Documentation

◆ options

enum osmium::metadata_options::options : unsigned int
private
Enumerator
md_none 
md_version 
md_timestamp 
md_changeset 
md_uid 
md_user 
md_all 

Constructor & Destructor Documentation

◆ metadata_options() [1/2]

osmium::metadata_options::metadata_options ( )
defaultnoexcept

◆ metadata_options() [2/2]

osmium::metadata_options::metadata_options ( const std::string &  attributes)
inlineexplicit

Member Function Documentation

◆ all()

bool osmium::metadata_options::all ( ) const
inlinenoexcept

All metadata attributes should be stored.

◆ any()

bool osmium::metadata_options::any ( ) const
inlinenoexcept

At least one metadata attribute should be stored.

◆ changeset()

bool osmium::metadata_options::changeset ( ) const
inlinenoexcept

◆ none()

bool osmium::metadata_options::none ( ) const
inlinenoexcept

No metadata attributes should be stored.

◆ operator&=()

metadata_options osmium::metadata_options::operator&= ( const metadata_options other)
inline

◆ operator|=()

metadata_options osmium::metadata_options::operator|= ( const metadata_options other)
inline

◆ set_changeset()

void osmium::metadata_options::set_changeset ( bool  flag)
inlinenoexcept

◆ set_timestamp()

void osmium::metadata_options::set_timestamp ( bool  flag)
inlinenoexcept

◆ set_uid()

void osmium::metadata_options::set_uid ( bool  flag)
inlinenoexcept

◆ set_user()

void osmium::metadata_options::set_user ( bool  flag)
inlinenoexcept

◆ set_version()

void osmium::metadata_options::set_version ( bool  flag)
inlinenoexcept

◆ timestamp()

bool osmium::metadata_options::timestamp ( ) const
inlinenoexcept

◆ to_string()

std::string osmium::metadata_options::to_string ( ) const
inline

◆ uid()

bool osmium::metadata_options::uid ( ) const
inlinenoexcept

◆ user()

bool osmium::metadata_options::user ( ) const
inlinenoexcept

◆ version()

bool osmium::metadata_options::version ( ) const
inlinenoexcept

Member Data Documentation

◆ m_options

enum osmium::metadata_options::options osmium::metadata_options::m_options = md_all
private

The documentation for this class was generated from the following file: