OpenTREP Logo  0.6.0
C++ Open Travel Request Parsing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
soci::type_conversion< OPENTREP::Place > Struct Template Reference

Specify how the Place class can be converted to (resp. from) values stored into (resp. retrieved from) database, using the SOCI framework. More...

#include <opentrep/dbadaptor/DbaPlace.hpp>

Public Types

typedef values base_type
 

Static Public Member Functions

static void from_base (values const &iPlaceValues, indicator, OPENTREP::Place &)
 
static void to_base (const OPENTREP::Place &, values &ioPlaceValues, indicator &)
 

Detailed Description

template<>
struct soci::type_conversion< OPENTREP::Place >

Specify how the Place class can be converted to (resp. from) values stored into (resp. retrieved from) database, using the SOCI framework.

Definition at line 27 of file DbaPlace.hpp.

Member Typedef Documentation

typedef values soci::type_conversion< OPENTREP::Place >::base_type

Definition at line 29 of file DbaPlace.hpp.

Member Function Documentation

void soci::type_conversion< OPENTREP::Place >::from_base ( values const &  iPlaceValues,
indicator  ,
OPENTREP::Place ioPlace 
)
static

Fill an Place object from the database values.

Definition at line 19 of file DbaPlace.cpp.

References OPENTREP::Place::addName(), OPENTREP::DEFAULT_DATE_STR, OPENTREP::Place::getKey(), OPENTREP::K_DEFAULT_PAGE_RANK, OPENTREP::Place::resetIndexSets(), OPENTREP::Place::resetMatrix(), OPENTREP::Place::setAdmin1AsciiName(), OPENTREP::Place::setAdmin1Code(), OPENTREP::Place::setAdmin1UtfName(), OPENTREP::Place::setAdmin2AsciiName(), OPENTREP::Place::setAdmin2Code(), OPENTREP::Place::setAdmin2UtfName(), OPENTREP::Place::setAdmin3Code(), OPENTREP::Place::setAdmin4Code(), OPENTREP::Place::setAltCountryCode(), OPENTREP::Place::setAsciiName(), OPENTREP::Place::setCityAsciiName(), OPENTREP::Place::setCityCode(), OPENTREP::Place::setCityUtfName(), OPENTREP::Place::setComment(), OPENTREP::Place::setCommonName(), OPENTREP::Place::setContinentName(), OPENTREP::Place::setCountryCode(), OPENTREP::Place::setCountryName(), OPENTREP::Place::setDateEnd(), OPENTREP::Place::setDateFrom(), OPENTREP::Place::setDSTOffset(), OPENTREP::Place::setElevation(), OPENTREP::Place::setEnvelopeID(), OPENTREP::Place::setFaaCode(), OPENTREP::Place::setFeatureClass(), OPENTREP::Place::setFeatureCode(), OPENTREP::Place::setGeonamesID(), OPENTREP::Place::setGMTOffset(), OPENTREP::Place::setGTopo30(), OPENTREP::Place::setIataCode(), OPENTREP::Place::setIataType(), OPENTREP::Place::setLatitude(), OPENTREP::Place::setLongitude(), OPENTREP::Place::setModificationDate(), OPENTREP::Place::setPageRank(), OPENTREP::Place::setPopulation(), OPENTREP::Place::setRawOffset(), OPENTREP::Place::setStateCode(), OPENTREP::Place::setTimeZone(), and OPENTREP::Place::setWikiLink().


The documentation for this struct was generated from the following files: