libdballe 9.6
Public Member Functions | Static Public Member Functions | List of all members
dballe::Data Class Referenceabstract

Key/value store where keys are strings and values are wreport variables. More...

#include <data.h>

Inheritance diagram for dballe::Data:
dballe::core::Data

Public Member Functions

virtual void clear ()=0
 Remove all contents from the record.
 
virtual void clear_ids ()=0
 Unset all database IDs in station and values.
 
virtual void clear_vars ()=0
 Remove all Bxxyyy keys from the record, leaving the rest intact.
 
virtual bool operator== (const Data &rec) const =0
 Check if two records are the same.
 
virtual bool operator!= (const Data &rec) const =0
 Check if two records differ.
 
virtual void print (FILE *out) const =0
 Print the contents of this record to the given stream.
 

Static Public Member Functions

static std::unique_ptr< Datacreate ()
 Create a new Record.
 

Detailed Description

Key/value store where keys are strings and values are wreport variables.

Keys are defined from a known vocabulary, where each key has an associated wreport::Varinfo structure.

Member Function Documentation

◆ clear()

virtual void dballe::Data::clear ( )
pure virtual

Remove all contents from the record.

Implemented in dballe::core::Data.

◆ clear_ids()

virtual void dballe::Data::clear_ids ( )
pure virtual

Unset all database IDs in station and values.

Implemented in dballe::core::Data.

◆ clear_vars()

virtual void dballe::Data::clear_vars ( )
pure virtual

Remove all Bxxyyy keys from the record, leaving the rest intact.

Implemented in dballe::core::Data.

◆ operator!=()

virtual bool dballe::Data::operator!= ( const Data rec) const
pure virtual

Check if two records differ.

Implemented in dballe::core::Data.

◆ operator==()

virtual bool dballe::Data::operator== ( const Data rec) const
pure virtual

Check if two records are the same.

Implemented in dballe::core::Data.

◆ print()

virtual void dballe::Data::print ( FILE *  out) const
pure virtual

Print the contents of this record to the given stream.

Implemented in dballe::core::Data.


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