PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
PathTest.cpp File Reference
#include "../utility/PEBLPath.h"
#include "../base/Evaluator.h"
#include "../devices/PEventLoop.h"
#include <iostream>

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 40 of file PathTest.cpp.

41{
42
43
44
45 cout << "\n\n\n==========================================================\n";
46 cout << "Testing the PEBLPath Class\n";
47 cout << "==========================================================\n";
48
49 PEBLPath myPath(argv[0]);
50
51 cout << "==========================================================\n";
52 cout << "Adding directories to path\n";
53 cout << "==========================================================\n";
54 // myPath.AddToPathList("./");
55 // myPath.AddToPathList("media/");
56 // myPath.AddToPathList("media/fonts/");
57
58
59 cout << "Looking for file Vera.ttf: [" << myPath.FindFile("Vera.ttf") << "]\n";
60 cout << "Looking for file Uppercase.txt:[" << myPath.FindFile("Uppercase.txt") << "]\n";
61
62
63 cout << "Looking for file Makefile: [" << myPath.FindFile("Makefile") << "]\n";
64 cout << "Looking for file notafile.txt: [" << myPath.FindFile("notafile.txt") << "]\n";
65
66 cout << "Finished" << endl;
67 return 0;
68}

References PEBLPath::FindFile().