5 #ifndef _DDS_FINDCFGFILE_H_ 6 #define _DDS_FINDCFGFILE_H_ 66 m_Paths.push_back(_Path);
72 m_Paths.push_back(_Path);
80 typename container_type::const_iterator iter(
83 if (m_Paths.end() == iter)
95 m_Paths.begin(), m_Paths.end(), std::ostream_iterator<container_value>(*_stream, _Seporator.c_str()));
bool file_exists(const std::string &_FileName)
Definition: SysHelper.h:345
bool operator()(const _T &_Path) const
Definition: FindCfgFile.h:23
_T container_value
Definition: FindCfgFile.h:60
CFindCfgFile & operator()(const container_value &_Path)
Definition: FindCfgFile.h:70
std::vector< _T > container_type
Definition: FindCfgFile.h:61
#define _T(s)
Use TCHAR instead of char or wchar_t. It will be appropriately translated.
Definition: def.h:82
void DumpOrder(std::ostream *_stream, const container_value &_Seporator)
Definition: FindCfgFile.h:89
CFindCfgFile & SetOrder(const container_value &_Path)
Definition: FindCfgFile.h:64
The SFileExists functor helps to check whether the file by a given full path exists or not.
Definition: FindCfgFile.h:21
void smart_path(_T *_Path)
The function extends any environment variable found in the give path to its value.
Definition: SysHelper.h:95
This class helps to find a cfg location with the best match from the given order.
Definition: FindCfgFile.h:57
void GetCfg(_T *_RetVal)
Definition: FindCfgFile.h:76
Definition: BoostHelper.h:14