CARMA C++
ColumnNames.h
Go to the documentation of this file.
1 #ifndef CARMA_DBMS_COLUMNNAMES_H
2 #define CARMA_DBMS_COLUMNNAMES_H
3 
15 #include <string>
16 
17 namespace carma {
21 namespace dbms {
22 
26  typedef enum {
27  COLUMN_BLANKINGFLAG,
28  COLUMN_BLANKINGFLAGID,
29  COLUMN_CALLER,
30  COLUMN_DATATYPEID,
31  COLUMN_DEVICEID,
32  COLUMN_ENUMID,
33  COLUMN_ENUMINDEX,
34  COLUMN_ENUMVALUE,
35  COLUMN_FRAMECOUNT,
36  COLUMN_IMAGPART,
37  COLUMN_INTEGRATEDIMAGPART,
38  COLUMN_INTEGRATEDREALPART,
39  COLUMN_INTEGRATEDVALUE,
40  COLUMN_INTEGRATIONID,
41  COLUMN_ISAMPLE,
42  COLUMN_LOCATIONID,
43  COLUMN_LOGNAME,
44  COLUMN_MAX,
45  COLUMN_MAXIMAGPART,
46  COLUMN_MAXREALPART,
47  COLUMN_MESSAGE,
48  COLUMN_MIN,
49  COLUMN_MINIMAGPART,
50  COLUMN_MINREALPART,
51  COLUMN_MPTYPEID,
52  COLUMN_NAME,
53  COLUMN_NDC,
54  COLUMN_PRIORITYID,
55  COLUMN_PRIORITY,
56  COLUMN_REALPART,
57  COLUMN_SIGNATURE,
58  COLUMN_SUBSYSID,
59  COLUMN_SUBSYSNAME,
60  COLUMN_TAGID,
61  COLUMN_VALIDITY,
62  COLUMN_VALIDITYID,
63  COLUMN_VALUE
64  } DBColumn;
65 
69  typedef enum {
70  ASCENDING,
71  DESCENDING
72  } SortOrder;
73 
79  std::string getColumnName(const DBColumn& column);
80 
84  std::string toString(const SortOrder& sortOrder);
85 
86 }}
87 
88 #endif
SortOrder
enum representing table sort order in an order by clause
Definition: ColumnNames.h:69
std::string toString(const SortOrder &sortOrder)
get a string representing the specified sort order
std::string getColumnName(const DBColumn &column)
get the actual column name for the specified column
DBColumn
database columns
Definition: ColumnNames.h:26