mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Import
- Trying different methods of making this code cleaner. Not working so far.
This commit is contained in:
parent
3e5bb713eb
commit
fb23bf73a3
2 changed files with 19 additions and 1 deletions
|
@ -97,18 +97,30 @@ int CmdImport::execute (std::string& output)
|
|||
std::cout << root->dump ()
|
||||
<< "\n";
|
||||
|
||||
/*
|
||||
// For each object element...
|
||||
json_object_iter i;
|
||||
for (i = ((json_object*)root)->begin ();
|
||||
i != ((json_object*)root)->end ();
|
||||
++i)
|
||||
{
|
||||
std::cout << "!!!\n";
|
||||
}
|
||||
|
||||
/*
|
||||
std::map <std::string, json::value*>::iterator i;
|
||||
for (i = ((std::map <std::string, json::value*>*)root)->begin ();
|
||||
i != ((std::map <std::string, json::value*>*)root)->end ();
|
||||
++i)
|
||||
{
|
||||
Task task;
|
||||
std::cout << "!!!\n";
|
||||
|
||||
// TODO Navigate each object.
|
||||
}
|
||||
*/
|
||||
|
||||
delete root;
|
||||
root = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue