52 match(
const int s,
const int e,
const string& t) : start(s), end(e), type(t) { }
72 virtual void ScanString(
const string&
s,
list<match>& results)
const = 0;
85 ScanString(s, results);
bool ReadFileToString(const string &fileName, string &out)
Utility: read file to string from scanners.h.
Store the results of a regex match.
bool operator==(const match &m1, const match &m2)
Compare two regex match.
int s
The socket that the CLI will use to communicate.
bool operator!=(const match &m1, const match &m2)
Compare two regex match.
virtual void ScanFile(const string &fileName, list< match > &results) const
Helper function to scan file.
Abstract class to provide interface to scanners.
list_t type structure used to keep various lists. (e.g. there are multiple lists).