Updated Documentation

- Added description of import process.
This commit is contained in:
Paul Beckingham 2009-03-27 22:02:13 -04:00
parent e4f5d6579c
commit c1291dc587
2 changed files with 30 additions and 1 deletions

View file

@ -240,8 +240,13 @@ std::string handleImport (TDB& tdb, T& task, Config& conf)
std::vector <std::string> lines;
slurp (file, lines, true);
// Take a guess at the file type.
fileType type = determineFileType (lines);
// TODO Allow an override.
// Determine which type it might be, then attempt an import.
switch (determineFileType (lines))
switch (type)
{
case task_1_4_3: out << importTask_1_4_3 (tdb, conf, lines); break;
case task_1_5_0: out << importTask_1_5_0 (tdb, conf, lines); break;