コード例 #1
0
int main()
{

	DataStore ds;
	ds.addFile("demo.txt", "path1");
	ds.addFile("demo.txt", "path2");
	ds.addFile("demo1.txt", "path1");
	ds.addFile("demo1.txt", "path2");
	ds.addFile("demo2.txt", "path1");
	ds.addFile("demo2.txt", "path2");
	ds.addFile("demo2.txt", "path3");

	std::cout << "\n";
}
コード例 #2
0
int main()
{

	DataStore ds;
	ds.addFile("demo.txt", "path1");
	ds.addFile("demo.txt", "path2");
	ds.addFile("demo1.txt", "path1");
	ds.addFile("demo1.txt", "path2");
	ds.addFile("demo2.txt", "path1");
	ds.addFile("demo2.txt", "path2");
	ds.addFile("demo2.txt", "path3");


	DisplayData::title("\n        Demonstrate DataStore Package        ");
	DisplayData::title("\n    Save data in std::map<std::string,std::list < std::set < std::string >::iterator > > and print", '-');
	DisplayData::showFileCatalouge(ds);
	std::cout << "\n";
}