FileSystemIndexer v0.1.2-beta
File System Indexer - An API to index files from your system
Loading...
Searching...
No Matches
main.cpp File Reference
Include dependency graph for main.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{main.cpp}

Functions

std::string anonymous_namespace{main.cpp}::__timeToStr (const fsi::utils::TimeUtils_DateTime &time)
int main ()

Function Documentation

◆ main()

int main ( )

Definition at line 20 of file main.cpp.

21{
22 ciof::print(FSI_temperatureConvertCelTo("f", 33));
23 ciof::print(FSI_temperatureConvertCelFrom("f", 33));
24
25 fsi::Indexer indexer("main-indexer", true);
26
27 {
29 info.path = ".";
30 info.id = "current-dir";
31
32 indexer.addExtendedInfo(info);
33 }
34
35 for (const auto &x : indexer.searchMatching("cpp"))
36 {
37 ciof::print("FILE NAME: %1 -- %2", x, __timeToStr(indexer.getFileDTInfo(x)));
38 }
39
40 ciof::print("ID `current-dir` has path: %1", indexer.findIndex("current-dir").path);
41
42 return 0;
43}
double FSI_temperatureConvertCelFrom(const char *to, const double from)
Convert from from to Celcius as a double.
double FSI_temperatureConvertCelTo(const char *from, const double to)
Convert Celcius to from as a double.
std::string __timeToStr(const fsi::utils::TimeUtils_DateTime &time)
Definition main.cpp:11
std::string path

References anonymous_namespace{main.cpp}::__timeToStr(), fsi::Indexer::addExtendedInfo(), fsi::Indexer::findIndex(), FSI_temperatureConvertCelFrom(), FSI_temperatureConvertCelTo(), fsi::Indexer::getFileDTInfo(), fsi::IndexerInfo::id, fsi::IndexerInfo::path, and fsi::Indexer::searchMatching().

Here is the call graph for this function: