fitness  v1
Public Member Functions | Static Public Member Functions | List of all members
google_fitness_api::MapValue Class Reference

#include <map_value.h>

Inheritance diagram for google_fitness_api::MapValue:

Public Member Functions

 MapValue (const Json::Value &storage)
 
 MapValue (Json::Value *storage)
 
virtual ~MapValue ()
 
const StringPiece GetTypeName () const
 
bool has_fp_val () const
 
void clear_fp_val ()
 
double get_fp_val () const
 
void set_fp_val (double value)
 

Static Public Member Functions

static MapValueNew ()
 

Detailed Description

Holder object for the value of an entry in a map field of a data point.

A map value supports a subset of the formats that the regular Value supports.

Constructor & Destructor Documentation

◆ MapValue() [1/2]

google_fitness_api::MapValue::MapValue ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ MapValue() [2/2]

google_fitness_api::MapValue::MapValue ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~MapValue()

google_fitness_api::MapValue::~MapValue ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_fp_val()

void google_fitness_api::MapValue::clear_fp_val ( )
inline

Clears the 'fpVal' attribute.

◆ get_fp_val()

double google_fitness_api::MapValue::get_fp_val ( ) const
inline

Get the value of the 'fpVal' attribute.

◆ GetTypeName()

const StringPiece google_fitness_api::MapValue::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_fitness_api::MapValue

◆ has_fp_val()

bool google_fitness_api::MapValue::has_fp_val ( ) const
inline

Determine if the 'fpVal' attribute was set.

Returns
true if the 'fpVal' attribute was set.

◆ New()

MapValue * google_fitness_api::MapValue::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_fp_val()

void google_fitness_api::MapValue::set_fp_val ( double  value)
inline

Change the 'fpVal' attribute.

Floating point value.

Parameters
[in]valueThe new value.

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