sipxportlib  Version 3.3
OsFS.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 
12 #ifndef _OsFS_h_
13 #define _OsFS_h_
14 
15 #include "os/OsFileBase.h"
16 #include "os/OsFileIteratorBase.h"
17 #include "os/OsDirBase.h"
18 #include "os/OsPathBase.h"
19 #include "os/OsFileInfoBase.h"
20 
21 // Depending on the native OS that we are running on, we include the class
22 // declaration for the appropriate lower level implementation and use a
23 // "typedef" statement to associate the OS-independent class name (OsTask)
24 // with the OS-dependent realization of that type (e.g., OsTaskWnt).
25 #if defined(_WIN32)
26 # include "os/Wnt/OsFileWnt.h"
27 # include "os/Wnt/OsDirWnt.h"
28 # include "os/Wnt/OsPathWnt.h"
29 # include "os/Wnt/OsFileInfoWnt.h"
30 # include "os/Wnt/OsFileIteratorWnt.h"
31 # include "os/Wnt/OsFileSystemWnt.h"
32  typedef class OsFileWnt OsFile;
33  typedef class OsDirWnt OsDir;
34  typedef class OsPathWnt OsPath;
35  typedef class OsFileInfoWnt OsFileInfo;
36  typedef class OsFileIteratorWnt OsFileIterator;
37 #elif defined(_VXWORKS)
38 # include "os/Vxw/OsFileVxw.h"
39 # include "os/Vxw/OsDirVxw.h"
40 # include "os/Vxw/OsPathVxw.h"
41 # include "os/Vxw/OsFileInfoVxw.h"
42 # include "os/Vxw/OsFileIteratorVxw.h"
43  typedef class OsPathVxw OsPath;
44  typedef class OsDirVxw OsDir;
45  typedef class OsFileVxw OsFile;
46  typedef class OsFileInfoVxw OsFileInfo;
47  typedef class OsFileIteratorVxw OsFileIterator;
48 #elif defined(__pingtel_on_posix__)
49 # include "os/linux/OsFileLinux.h"
50 # include "os/linux/OsDirLinux.h"
51 # include "os/linux/OsPathLinux.h"
54  typedef class OsPathLinux OsPath;
55  typedef class OsDirLinux OsDir;
56  typedef class OsFileLinux OsFile;
57  typedef class OsFileInfoLinux OsFileInfo;
58  typedef class OsFileIteratorLinux OsFileIterator;
59 #else
60 # error Unsupported target platform.
61 #endif
62 
63 #include "os/OsFileSystem.h"
64 
65 
66 #endif /* ifdef _OsFS_h_ */
67 
Definition: OsFileIteratorWnt.h:36
Definition: OsFileIteratorLinux.h:39
Definition: OsFileInfoLinux.h:35
Definition: OsFileWnt.h:34
Definition: OsDirLinux.h:35
Definition: OsDirWnt.h:38
Definition: OsPathWnt.h:35
Definition: OsFileLinux.h:35
Definition: OsPathLinux.h:33
Definition: OsFileInfoWnt.h:37