nidas  v1.2-1520
Public Member Functions | Public Attributes | List of all members
SampleToDatabase Class Reference

Public Member Functions

 SampleToDatabase (InfluxDB *db=0, dsm_sample_id_t sid=0, const std::string &sname="", const SampleTag *stag=0)
 A default constructor is required to use objects as a map element. More...
 
void setSiteAndMeasurement (const SampleTag *stag)
 
void defaultMeasurementName (const SampleTag *stag)
 Generate a default measurement name for SampleTag stag. More...
 
bool receive (const Sample *samp) throw ()
 
void accumulate (const Sample *samp)
 
SampleToDatabaseoperator= (const SampleToDatabase &rhs)
 
 SampleToDatabase (const SampleToDatabase &rhs)
 

Public Attributes

InfluxDB_db
 
string name
 
dsm_sample_id_t id
 
string sitename
 
string measurementName
 
string spsid
 
string dsmid
 
string sampid
 
string info
 
vector< string > varunits
 
vector< string > varnames
 

Constructor & Destructor Documentation

SampleToDatabase::SampleToDatabase ( InfluxDB db = 0,
dsm_sample_id_t  sid = 0,
const std::string &  sname = "",
const SampleTag stag = 0 
)
inline
SampleToDatabase::SampleToDatabase ( const SampleToDatabase rhs)
inline

Member Function Documentation

void SampleToDatabase::accumulate ( const Sample samp)
void SampleToDatabase::defaultMeasurementName ( const SampleTag stag)
inline
SampleToDatabase& SampleToDatabase::operator= ( const SampleToDatabase rhs)
inline
bool SampleToDatabase::receive ( const Sample samp)
throw (
)
void SampleToDatabase::setSiteAndMeasurement ( const SampleTag stag)
inline

Member Data Documentation

InfluxDB* SampleToDatabase::_db

Referenced by operator=().

string SampleToDatabase::dsmid

Referenced by operator=().

dsm_sample_id_t SampleToDatabase::id

Referenced by operator=().

string SampleToDatabase::info

Referenced by operator=().

string SampleToDatabase::measurementName

Referenced by operator=().

string SampleToDatabase::name

Referenced by operator=().

string SampleToDatabase::sampid

Referenced by operator=().

string SampleToDatabase::sitename

Referenced by operator=().

string SampleToDatabase::spsid

Referenced by operator=().

vector<string> SampleToDatabase::varnames

Referenced by operator=().

vector<string> SampleToDatabase::varunits

Referenced by operator=().


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