0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CommandInterpreter.cc
Go to the documentation of this file.
1 
22 #include "Common/Compat.h"
23 
24 #include "CommandInterpreter.h"
25 
26 #include <cassert>
27 
28 using namespace Hypertable;
29 using namespace std;
30 
32  : m_timestamp_output_format(TIMESTAMP_FORMAT_DEFAULT), m_silent(false),
33  m_test_mode(false) {
34 }
35 
36 
37 void
39  if (format == "default")
41  else if (format == "nanos")
43  else if (format == "nanoseconds")
45  else if (format == "usecs") // backward compatibilty
47  else {
48  assert(!"invalid timestamp format");
49  }
50 }
51 
std::string String
A String is simply a typedef to std::string.
Definition: String.h:44
String format(const char *fmt,...)
Returns a String using printf like format facilities Vanilla snprintf is about 1.5x faster than this...
Definition: String.cc:37
STL namespace.
void set_timestamp_output_format(const String &format)
Compatibility Macros for C/C++.
Hypertable definitions