~hikiko/nux/arb-srgba-shader

« back to all changes in this revision

Viewing changes to NuxCore/FilePath.h

  • Committer: Neil Jagdish Patel
  • Date: 2010-09-01 19:25:37 UTC
  • Revision ID: neil.patel@canonical.com-20100901192537-mfz7rm6q262pewg6
Import and build NuxCore

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
//////////////////////////////////////////////////////////////////////////
 
3
// This file comes from NVidia SDK 9.5 data_path.h                      //
 
4
//////////////////////////////////////////////////////////////////////////
 
5
 
 
6
#ifndef FILEPATH_H
 
7
#define FILEPATH_H
 
8
 
 
9
#ifdef _WIN32
 
10
#  pragma warning(disable:4786)   // symbol size limitation ... STL
 
11
#endif
 
12
 
 
13
#include <stdio.h>
 
14
#include <vector>
 
15
#include <string>
 
16
#include <sys/stat.h>
 
17
#include <sys/types.h>
 
18
 
 
19
NAMESPACE_BEGIN
 
20
 
 
21
class FilePath
 
22
{
 
23
public:
 
24
    FilePath();
 
25
    ~FilePath();
 
26
 
 
27
    void AddSearchPath(const NString& searchpath);
 
28
    void AddSearchPath(const std::vector<NString>& searchpath);
 
29
 
 
30
    NString GetPathToFile(const TCHAR* filename) const;
 
31
    NString GetFile(const TCHAR* filename) const;
 
32
        
 
33
private:
 
34
    std::vector<NString>          m_SearchPath;
 
35
};
 
36
 
 
37
NAMESPACE_END
 
38
 
 
39
#endif // FILEPATH_H