Osmium  0.1
Namespaces | Classes | Functions
Osmium Namespace Reference

All Osmium code is in this namespace. More...

Namespaces

namespace  Exception
 

Exceptions used in different parts of Osmium.


namespace  Export
 

Classes implementing export into non-OSM formats such as to shapefiles.


namespace  Geometry
 

Geometry classes such as for points, linestrings, and polygons.


namespace  Handler
 

Handlers operate on OSM data through callbacks.


namespace  Input
 

Input classes parse OSM files and call a handler on the data they read.


namespace  Javascript
 

Javascript support for Osmium.


namespace  OSM
 

Basic classes for tags, nodes, ways, etc.


namespace  Output
 

Classes for writing OSM files.


namespace  Sqlite
 

The Sqlite classes wrap the Sqlite C library.


namespace  Storage
 

Classes handling storage of data.


namespace  Utils

Classes

class  OSMFile
class  Delta
class  StringTable
class  Unicode_Conversion_Error
 Parent exception class for Unicode conversion errors. More...
class  UTF8_to_UTF16_Conversion_Error
 Exception thrown when a UTF-8 to UTF-16 conversion failed. More...
class  UTF16_to_UTF8_Conversion_Error
 Exception thrown when a UTF-16 to UTF-8 conversion failed. More...
class  Framework

Functions

template<int characters>
v8::Local< v8::String > utf8_to_v8_String (const char *cstring)
template<int characters>
const char * v8_String_to_utf8 (v8::Local< v8::String > string)
void v8_String_to_ostream (v8::Local< v8::String > string, std::ostream &os)
Frameworkinit (bool debug=false)
void set_debug (bool d)
bool debug ()

Detailed Description

All Osmium code is in this namespace.


Function Documentation

bool Osmium::debug ( )

Is debugging output set?

Framework& Osmium::init ( bool  debug = false)

Initialize the Osmium library. Call this before using any of the Osmium functions.

Parameters:
debugEnable or disable the debugging output.
void Osmium::set_debug ( bool  d)

Enable or disable the debugging output.

template<int characters>
v8::Local<v8::String> Osmium::utf8_to_v8_String ( const char *  cstring)

Convert C string with UTF-8 codes into v8::String.

Exceptions:
UTF8_to_UTF16_Conversion_ErrorThrown if the conversion failed.
Template Parameters:
charactersMaximum number of Unicode characters.
Parameters:
cstringA NULL terminated C string.
Returns:
A local handle to a v8 String.
void Osmium::v8_String_to_ostream ( v8::Local< v8::String >  string,
std::ostream &  os 
) [inline]

Sends v8::String to output stream. This will first convert it to a UTF-8 string.

Exceptions:
UTF16_to_UTF8_Conversion_ErrorThrown if the conversion failed.
Parameters:
stringA v8::String.
osA reference to an output stream.
template<int characters>
const char* Osmium::v8_String_to_utf8 ( v8::Local< v8::String >  string)

Convert v8::String into C string with UTF-8 codes.

Exceptions:
UTF16_to_UTF8_Conversion_ErrorThrown if the conversion failed.
Template Parameters:
charactersMaximum number of Unicode characters.
Parameters:
stringA v8::String.
Returns:
Returns a pointer to a static buffer with a NULL terminated C string.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines