ClockWork DB CoreAPI 1.0.48
Abstract Time Series and Storage/Management Library
Loading...
Searching...
No Matches
tom::tsdb::access_mode Class Reference

#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
 

Detailed Description

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.

Member Function Documentation

◆ create()

access_mode tom::tsdb::access_mode::create ( )
static

Create a read-write access_mode intended to create the datastore if it does not exist.

◆ exclusive()

access_mode tom::tsdb::access_mode::exclusive ( )
static

Create an exclusive access_mode

◆ exclusive_create()

access_mode tom::tsdb::access_mode::exclusive_create ( )
static

Create an exclusive access_mode, creating the datastore if it does not exist.

◆ is_createable()

bool tom::tsdb::access_mode::is_createable ( ) const

Is the access_mode createable

◆ is_exclusive()

bool tom::tsdb::access_mode::is_exclusive ( ) const

Is the access_mode exclusive

◆ is_read_only()

bool tom::tsdb::access_mode::is_read_only ( ) const

Is the access_mode read_only

◆ is_writeable()

bool tom::tsdb::access_mode::is_writeable ( ) const

Is the access_mode writeable

◆ read_only()

access_mode tom::tsdb::access_mode::read_only ( )
static

Create a read-only access_mode

◆ read_write()

access_mode tom::tsdb::access_mode::read_write ( )
static

Create a read-write access_mode


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