OmniSciDB  b24e664e58
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GeoTargetValuePtrSerializer< kLINESTRING > Struct Template Reference

#include <ResultSetGeoSerialization.h>

Static Public Member Functions

static TargetValue serialize (const SQLTypeInfo &geo_ti, std::array< VarlenDatumPtr, 1 > &vals)
 

Detailed Description

template<>
struct GeoTargetValuePtrSerializer< kLINESTRING >

Definition at line 203 of file ResultSetGeoSerialization.h.

Member Function Documentation

static TargetValue GeoTargetValuePtrSerializer< kLINESTRING >::serialize ( const SQLTypeInfo geo_ti,
std::array< VarlenDatumPtr, 1 > &  vals 
)
inlinestatic

Definition at line 204 of file ResultSetGeoSerialization.h.

205  {
206  // TODO: once NULL geo support is in, add coords NULL check under !notnull
207  // if (!geo_ti.get_notnull() && vals[0]->is_null) {
208  // return GeoTargetValuePtr();
209  // }
210  return GeoLineStringTargetValuePtr({std::move(vals[0])});
211  }

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