Rules: Stubbed ::parseRuleHolidays

This commit is contained in:
Paul Beckingham 2016-03-26 14:31:55 -04:00
parent ea5a5b743c
commit 78d29f8f1d
2 changed files with 13 additions and 0 deletions

View file

@ -313,6 +313,10 @@ void Rules::parseRule (const std::string& input)
else if (tokens.size () == 2 && tokens[1] == "theme:")
parseRuleTheme (lines);
// define holidays:
else if (tokens.size () == 2 && tokens[1] == "holidays:")
parseRuleHolidays (lines);
// Error.
else
throw format ("Unrecognized rule type '{1}'", join (" ", tokens));
@ -348,6 +352,14 @@ void Rules::parseRuleTag (const std::vector <std::string>& lines)
}
}
////////////////////////////////////////////////////////////////////////////////
void Rules::parseRuleHolidays (const std::vector <std::string>& lines)
{
for (auto& line : lines)
{
}
}
////////////////////////////////////////////////////////////////////////////////
unsigned int Rules::getIndentation (const std::string& line)
{

View file

@ -60,6 +60,7 @@ private:
void parseRuleTheme (const std::vector <std::string>&);
void parseRuleExclusions (const std::vector <std::string>&);
void parseRuleTag (const std::vector <std::string>&);
void parseRuleHolidays (const std::vector <std::string>&);
unsigned int getIndentation (const std::string&);
std::vector <std::string> tokenizeLine (const std::string&);