Changeset 225 for trunk/foundation/idl/nomfilepath.idl
- Timestamp:
- Feb 4, 2007, 3:17:09 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/foundation/idl/nomfilepath.idl
r180 r225 41 41 NOMCLASSNAME(NOMPath); 42 42 43 /** \class NOMPath 44 NOMPath is a specialized string class for dealing with file or directory paths. 45 As with NOMString the NOMPath class is always working on copies. 46 */ 43 47 interface NOMPath : NOMString 44 48 { 49 /** 50 The current version of this class is 1.0 51 */ 45 52 NOMCLASSVERSION(1, 0); 46 53 54 /** 55 Append a path to the string. A path separator will be added to the current path 56 if necessary and the given string appended. If the given string starts with a separator 57 no additional separator will be added to the path prior to appending. If the given string 58 starts with a separator and the current path ends with a separator the ending separator 59 will be removed before appending. 60 61 \remark 62 Note that there's no check if the input string is an absolute path. So if an absolute path 63 is given as input the resulting path may not be valid. 64 65 \return 66 The method returns a new NOMPath instance after appending. 67 68 \sa append(), appendCString() 69 */ 47 70 PNOMPath appendPath(in PNOMPath nomPath); 71 72 /** 73 Append a separator to the path. If the path already has a separator at the end this method 74 does nothing other than returning a new path object. If the given path has zero length 75 a path object only holding a separator is returned. 76 77 \return 78 This method always returns a new instance of a NOMPath owned by the caller. 79 80 \sa append(), appendPath() 81 */ 48 82 PNOMPath appendSeparator(); 83 84 /** 85 Strips the path separator from the end of a path if there's one. 86 87 \return 88 This method always returns a new instance of a NOMPath owned by the caller. 89 90 \sa appendSeparator() 91 */ 49 92 PNOMPath stripSeparator(); 93 94 /** 95 96 \remark This method is only implemented for OS/2. 97 98 \return 99 Returns TRUE if the given path is absolute. On OS/2 this means it starts with a letter 100 followed by a colon. 101 */ 50 102 boolean pathIsAbsolute(); 103 104 /** 105 Returns the root of the current path. On OS/2 that is a letter followed by a colon. 106 107 \remark This method is only implemented for OS/2. 108 109 \return 110 This method always returns a new instance of a NOMPath owned by the caller. 111 */ 51 112 PNOMPath queryRoot(); 113 114 /** 115 This method strips all characters from the beginning of a path till the first 116 directory separator and also this first separator. If there's no separator in 117 the path a zero length path is returned. 118 119 \return 120 This method always returns a new instance of a NOMPath owned by the caller. 121 122 \sa queryPathBegin() 123 */ 52 124 PNOMPath erasePathBegin(); 125 126 /** 127 Returns the part of the path up to the first directory separator ('\' on OS/2). 128 If there's no directory separator the whole path is returned. This method does 129 not remove the part from the given path. Use erasePathBegin() to do that. 130 131 \remark This method only works for null terminated string. 132 133 \return 134 A new NOMString object holding the first part of a path. 135 136 \sa erasePathBegin() 137 */ 53 138 PNOMPath queryPathBegin(); 54 139 };
Note:
See TracChangeset
for help on using the changeset viewer.