SUMO - Simulation of Urban MObility
TplConvert Class Reference

#include <TplConvert.h>

Collaboration diagram for TplConvert:
Collaboration graph

Static Public Member Functions

Conversion of basic types and data arrays to String
static std::string _2str (const XMLCh *const data)
 converts a 0-terminated char-type array into std::string More...
 
static std::string _2str (const XMLCh *const data, int length)
 converts a char-type array into std::string considering the given length More...
 

Detailed Description

TplConvert Some methods that convert 0-terminated XMLCh-arrays into std::strings

Definition at line 47 of file TplConvert.h.

Member Function Documentation

◆ _2str() [1/2]

◆ _2str() [2/2]

static std::string TplConvert::_2str ( const XMLCh *const  data,
int  length 
)
inlinestatic

converts a char-type array into std::string considering the given length

Exceptions
anEmptyData - exception if the given pointer is 0

Definition at line 61 of file TplConvert.h.


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