27 #ifndef Common_ClusterDefinition_Tokenizer_h
28 #define Common_ClusterDefinition_Tokenizer_h
35 namespace Hypertable {
namespace ClusterDefinitionFile {
60 Tokenizer(
const string &fname,
const string &content);
77 bool next(
Token &token);
88 int identify_line_type(
const char *base,
const char *end);
110 bool accumulate(
const char **basep,
const char *end,
int type,
Token &token);
117 const char *m_next {};
129 #endif // Common_ClusterDefinition_Tokenizer_h
Cluster definition file token.
shared_ptr< Tokenizer > TokenizerPtr
Smart pointer to Tokenizer.
Splits cluster definition file into tokens.
string m_fname
Pathname of cluster definition file.
string m_content
Content of cluster definition file.