Skip to content

Commit

Permalink
remove some stale todo comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ZXGuesser committed Jan 12, 2020
1 parent 58e1536 commit 9e67a0d
Show file tree
Hide file tree
Showing 8 changed files with 184 additions and 202 deletions.
7 changes: 2 additions & 5 deletions configure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,15 @@ Configure::Configure(int argc, char** argv) :
exit(EXIT_FAILURE);
}

/// @ scan for overriding the configuration file
// TODO: allow overriding config file from command line
std::cerr << "[Configure::Configure] Pages directory is " << _pageDir << std::endl;
std::cerr << "[Configure::Configure] Config file is " << _configFile << std::endl;
/// @todo load the configuration file.

std::string path;
path = _pageDir;
path += "/";
path += _configFile;
LoadConfigFile(path);
/// @todo scan the command line for other overrides.
}

Configure::~Configure()
Expand All @@ -108,7 +107,6 @@ int Configure::LoadConfigFile(std::string filename)
TTXLine* header = new TTXLine();
while (std::getline(filein >> std::ws, line)){
if (line.front() != ';'){ // ignore comments
/// todo: parsing!
std::size_t delim = line.find("=", 0);
int error = 0;

Expand Down Expand Up @@ -252,7 +250,6 @@ int Configure::LoadConfigFile(std::string filename)
}
break;
case 11: // "magazine_priority"
// TODO: implement parsing from config
std::stringstream ss(value);
std::string temps;
int tmp[8];
Expand Down
4 changes: 1 addition & 3 deletions filemonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ std::thread FileMonitor::run()

void FileMonitor::run()
{
// @todo This thread will clash. They need proper protection.

std::string path=_configure->GetPageDirectory() ; //
std::string path=_configure->GetPageDirectory() ;
std::cerr << "[FileMonitor::run] Monitoring " << path << std::endl;

while (true)
Expand Down
Loading

0 comments on commit 9e67a0d

Please sign in to comment.