|
PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
|
#include <PEBLPath.h>
Public Member Functions | |
| PEBLPath () | |
| ~PEBLPath () | |
| void | Initialize (std::list< std::string >) |
| void | AddToPathList (const string &s) |
| std::string | FindFile (const string &filename) |
| const string | MergePathAndFile (const string &path, const string &file) |
| bool | IsDirectory (const string &pathname) |
| std::ostream & | Print (std::ostream &out) const |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const PEBLPath &path) |
This class stores a series of file system locations, which you can use to search through with the FindFile method to locate files. Paths will be searched in the order in which they are added, and the first match will be used.
Definition at line 41 of file PEBLPath.h.
| PEBLPath::PEBLPath | ( | ) |
Definition at line 55 of file PEBLPath.cpp.
| PEBLPath::~PEBLPath | ( | ) |
Definition at line 354 of file PEBLPath.cpp.
| void PEBLPath::AddToPathList | ( | const string & | s | ) |
Definition at line 361 of file PEBLPath.cpp.
Referenced by Initialize().
| string PEBLPath::FindFile | ( | const string & | filename | ) |
Definition at line 368 of file PEBLPath.cpp.
Referenced by PEBLStream::AppendFile(), PEBLStream::CopyFile(), PEBLStream::FileReadList(), PEBLStream::FileReadTable(), PEBLStream::FileReadText(), PlatformImageBox::LoadImage(), PlatformAudioOut::LoadSoundFile(), main(), main(), PEBLInterpret(), PlatformAudioOut::PlatformAudioOut(), PlatformFont::PlatformFont(), PlatformFont::PlatformFont(), PlatformFont::SetFontSize(), and PlatformFont::SetFontStyle().
| void PEBLPath::Initialize | ( | std::list< std::string > | files | ) |
Definition at line 60 of file PEBLPath.cpp.
References AddToPathList(), br_find_exe(), br_find_exe_dir(), br_init(), BR_INIT_ERROR_DISABLED, MergePathAndFile(), NULL, PError::SignalFatalError(), PError::SignalWarning(), and PEBLUtility::StripFile().
Referenced by main(), and PEBLInterpret().
| bool PEBLPath::IsDirectory | ( | const string & | pathname | ) |
Definition at line 411 of file PEBLPath.cpp.
| const string PEBLPath::MergePathAndFile | ( | const string & | path, |
| const string & | file | ||
| ) |
Definition at line 405 of file PEBLPath.cpp.
Referenced by Initialize().
| ostream & PEBLPath::Print | ( | std::ostream & | out | ) | const |
Definition at line 434 of file PEBLPath.cpp.
Referenced by operator<<().
|
friend |