VR-Link API Documentation for HLA 1.3
vlFilename.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
8 #pragma once
9 
10 #include "vlString.h"
11 
12 #ifdef DtUSE_UTILITIES_NAMESPACE
13 namespace DtUSE_UTILITIES_NAMESPACE
14 {
15 #endif
16 
21 {
22 public:
24  DtFilename();
25 
27  DtFilename(const char* str);
28 
30  virtual ~DtFilename();
31 
33  DtFilename(const DtFilename& orig);
34 
36  DtFilename& operator=(const DtFilename& orig);
37  DtFilename& operator=(const DtString& orig);
38  DtFilename& operator=(const char* orig);
39 
42  virtual bool absolute() const;
43  virtual bool relative() const;
44 
49  virtual void append(DtFilename const& filename);
50 
56  virtual void prepend(DtFilename const& pathName);
57 
61  virtual DtString extension() const;
62 
66  virtual void setExtension(const DtString& extension);
67 
69  virtual void stripFilename();
70 
72  virtual void stripPath();
73 
81  virtual void stripExtension();
82 
84  virtual bool isWritable() const;
85 
87  virtual bool isReadable() const;
88 
91  virtual unsigned long fileLength() const;
92 
94  virtual bool exists() const;
95 
96 public:
97 
99  static const DtFilename& nullFilename();
100 
102  static DtFilename stripFilename(const DtFilename& orig);
103 
105  static DtFilename stripPath(const DtFilename& orig);
106 
108  static DtFilename stripExtension(const DtFilename& orig);
109 
115  static DtFilename combine(const DtFilename& path, const DtFilename& filename);
116 
118  static char separator();
119 
120 
121 protected:
126  void replaceSlashes();
127 
128 protected:
129  static const char theSeparator;
130 };
131 
132 #ifdef DtUSE_UTILITIES_NAMESPACE
133 }
134 #endif

Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)