libdballe  7.19
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
dballe::db::v7::bulk::Item Struct Reference
Inheritance diagram for dballe::db::v7::bulk::Item:
dballe::db::v7::bulk::VarItem< state_t > dballe::db::v7::bulk::VarItem< stationvalues_t > dballe::db::v7::bulk::VarItem< values_t > dballe::db::v7::bulk::StationVar dballe::db::v7::bulk::Var

Public Member Functions

bool needs_update () const
 
bool updated () const
 
bool needs_insert () const
 
bool inserted () const
 
void set_needs_update ()
 
void set_updated ()
 
void set_needs_insert ()
 
void set_inserted ()
 
void format_flags (char *dest) const
 Format flags in the first 4 characters of dest. More...
 

Public Attributes

unsigned flags = 0
 

Static Public Attributes

static const unsigned FLAG_NEEDS_UPDATE = 1 << 0
 
static const unsigned FLAG_UPDATED = 1 << 1
 
static const unsigned FLAG_NEEDS_INSERT = 1 << 2
 
static const unsigned FLAG_INSERTED = 1 << 3
 

Member Function Documentation

void dballe::db::v7::bulk::Item::format_flags ( char *  dest) const

Format flags in the first 4 characters of dest.

It adds a trailing 0, so dest should be at least 5 bytes long.


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