BusBoy  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Static Public Member Functions | List of all members
BUSBOY::DimensionCatalog Class Reference

Catalog of standard dimensions. More...

#include <DimensionCatalog.h>

Public Types

enum  Type {
  ANCHOR, FRAME, SENSOR, IMAGE_TYPE,
  DATA_SOURCE
}
 

Static Public Member Functions

static Type enumFromString (std::string strType)
 Parses the string equivalent of the enum. More...
 
static std::string enumToString (Type type)
 Returns the string equivalent of the enum. More...
 
static bool hasDimension (Keyspace keyspace, Type type)
 Returns true if the specified dimension type exists in the keyspace. More...
 
static KeyspaceDimension findDimension (Keyspace keyspace, Type type)
 Finds the KeyspaceDimension for the dimension type. More...
 
static DataKeyDimension toDimension (Type type)
 Create KeyDimension object for the dimension type. More...
 

Detailed Description

Catalog of standard dimensions.

Member Enumeration Documentation

Enumerator
ANCHOR 
FRAME 
SENSOR 
IMAGE_TYPE 
DATA_SOURCE 

Member Function Documentation

DimensionCatalog::Type BUSBOY::DimensionCatalog::enumFromString ( std::string  strType)
static

Parses the string equivalent of the enum.

For example: "FRAME" –> FRAME

std::string BUSBOY::DimensionCatalog::enumToString ( DimensionCatalog::Type  type)
static

Returns the string equivalent of the enum.

For example: FRAME –> "FRAME"

KeyspaceDimension BUSBOY::DimensionCatalog::findDimension ( Keyspace  keyspace,
Type  type 
)
static

Finds the KeyspaceDimension for the dimension type.

Will throw an exception if it is not found

bool BUSBOY::DimensionCatalog::hasDimension ( Keyspace  keyspace,
Type  type 
)
static

Returns true if the specified dimension type exists in the keyspace.

DataKeyDimension BUSBOY::DimensionCatalog::toDimension ( Type  type)
static

Create KeyDimension object for the dimension type.


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

Copyright 2014 Google Inc. All rights reserved.