SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
Range.cc
Go to the documentation of this file.
1 /*
2  * SWC-DB© Copyright since 2019 Alex Kashirin <kashirin.alex@gmail.com>
3  * License details at <https://github.com/kashirin-alex/swc-db/#license>
4  */
5 
6 
7 #include "swcdb/db/Types/Range.h"
8 
9 
10 namespace SWC { namespace DB { namespace Types {
11 
12 
13 namespace {
14  const char Range_MASTER[] = "MASTER";
15  const char Range_META[] = "META";
16  const char Range_DATA[] = "DATA";
17  const char Range_UNKNOWN[] = "UNKNOWN";
18 }
19 
20 
21 const char* to_string(Range typ) noexcept {
22  switch(typ) {
23  case Range::MASTER:
24  return Range_MASTER;
25  case Range::META:
26  return Range_META;
27  case Range::DATA:
28  return Range_DATA;
29  default:
30  return Range_UNKNOWN;
31  }
32 }
33 
34 
35 }}}
SWC::DB::Types::to_string
const char *SWC_CONST_FUNC to_string(Column typ) noexcept
Definition: Column.cc:38
Range.h
SWC
The SWC-DB C++ namespace 'SWC'.
Definition: main.cc:12
SWC::DB::Types::Range::MASTER
@ MASTER
SWC::DB::Types::Range
Range
Definition: Range.h:14