7 #ifndef MESSAGE_READER_H
8 #define MESSAGE_READER_H
56 dictionary_(dictionary), lineno_(0)
82 dictionary_ = dictionary;
159 void parseMessage(
const std::string& line,
Mode mode);
168 void parseDirective(
const std::string& line);
174 void parsePrefix(
const std::vector<std::string>&
tokens);
180 void parseNamespace(
const std::vector<std::string>&
tokens);
192 bool invalidSymbol(
const std::string& symbol);
198 MessageIDCollection not_added_;
207 #endif // MESSAGE_READER_H
MessageIDCollection getNotAdded() const
Get Not-Added List.
virtual void clearPrefix()
Clear Prefix.
virtual std::string getNamespace() const
Get Namespace.
virtual void readFile(const std::string &file, Mode mode=ADD)
Read File.
virtual std::string getPrefix() const
Get Prefix.
MessageDictionary * getDictionary() const
Get Dictionary.
void setDictionary(MessageDictionary *dictionary)
Set Dictionary.
virtual void processLine(const std::string &line, Mode mode=ADD)
Process Line.
virtual void clearNamespace()
Clear Namespace.
vector< string > tokens(const std::string &text, const std::string &delim, bool escape)
Split String into Tokens.
Defines the logger used by the top-level component of kea-dhcp-ddns.
virtual ~MessageReader()
Virtual Destructor.
MessageReader(MessageDictionary *dictionary=NULL)
Constructor.
std::vector< std::string > MessageIDCollection
Visible collection types.