|
ClockWork DB CoreAPI 1.0.48
Abstract Time Series and Storage/Management Library
|
#include <tom-tsdb/datastore.hpp>
Public Member Functions | |
| unsigned int | bit_map () const |
| bool | is_createable () const |
| bool | is_exclusive () const |
| bool | is_read_only () const |
| bool | is_writeable () const |
Static Public Member Functions | |
| static access_mode | create () |
| static access_mode | exclusive () |
| static access_mode | exclusive_create () |
| static access_mode | read_only () |
| static access_mode | read_write () |
Static Public Attributes | |
| static unsigned int | CREATE = 1 << 2 |
| static unsigned int | EXCLUSIVE = 1 << 3 |
| static unsigned int | READ = 1 << 0 |
| static unsigned int | WRITE = 1 << 1 |
access_mode is another uint promotion to first class object that embodies the notion of access mode for a given datastore. the meaning should be obvious, and all access_modes are created by static factory methods whose names represent the access type.
|
static |
Create a read-write access_mode intended to create the datastore if it does not exist.
|
static |
Create an exclusive access_mode
|
static |
Create an exclusive access_mode, creating the datastore if it does not exist.
| bool tom::tsdb::access_mode::is_createable | ( | ) | const |
Is the access_mode createable
| bool tom::tsdb::access_mode::is_exclusive | ( | ) | const |
Is the access_mode exclusive
| bool tom::tsdb::access_mode::is_read_only | ( | ) | const |
Is the access_mode read_only
| bool tom::tsdb::access_mode::is_writeable | ( | ) | const |
Is the access_mode writeable
|
static |
Create a read-only access_mode
|
static |
Create a read-write access_mode