summaryrefslogtreecommitdiff
path: root/cosv
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-11-02 16:39:45 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-11-02 16:39:45 +0000
commitf94edd85bea62b3eb2722d7bf46f6bfb206b78f5 (patch)
tree2fbf96f5ced1f3d362d3be957c7215e7cdc42e15 /cosv
parent1513fe29b5ceaf778293b978a8f7cda07af9a3fd (diff)
INTEGRATION: CWS adc18 (1.4.38); FILE MERGED
2007/09/20 12:51:41 np 1.4.38.2: #i81775# 2007/09/20 12:16:14 np 1.4.38.1: #i81775#
Diffstat (limited to 'cosv')
-rw-r--r--cosv/inc/cosv/ploc.hxx28
1 files changed, 13 insertions, 15 deletions
diff --git a/cosv/inc/cosv/ploc.hxx b/cosv/inc/cosv/ploc.hxx
index 6cacfb6562ba..b2ec6943620d 100644
--- a/cosv/inc/cosv/ploc.hxx
+++ b/cosv/inc/cosv/ploc.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: ploc.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 07:56:21 $
+ * last change: $Author: hr $ $Date: 2007-11-02 17:39:45 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -36,33 +36,35 @@
#ifndef CSV_PLOC_HXX
#define CSV_PLOC_HXX
-
// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
#include <cosv/string.hxx>
#include <cosv/plocroot.hxx>
#include <cosv/dirchain.hxx>
-#include <cosv/template/dyn.hxx>
- // PARAMETERS
+#include <cosv/tpl/dyn.hxx>
#include <cosv/csv_ostream.hxx>
+
+
namespace csv
{
class bostream;
-
namespace ploc
{
class Root;
+
+/** Represents a path in the file system.
+
+ The path can be relative or absolute and in Unix- or Windows-syntax.
+*/
class Path
{
public:
// LIFECYCLE
- Path(
+ explicit Path(
const char * i_sPath = ".", /// Dirs have to be ended with a '\\ or '/'.
bool i_bPathIsAlwaysDir = false, /// This overrides a missing Delimiter at the end of the i_sPath, if true.
const char * i_sDelimiter = Delimiter() );
@@ -77,14 +79,14 @@ class Path
const char * i_sPath,
bool i_bPathIsAlwaysDir = false,
const char * i_sDelimiter = Delimiter() );
- void SetFile( // If there is already a file, that is exchanged.
+ void SetFile( // If there is already a file, that is exchanged.
const String & i_sName );
// INQUIRY
const Root & RootDir() const { return *pRoot; }
const DirectoryChain &
DirChain() const { return aPath; }
const String & File() const { return sFile; }
- const char * FileEnding() const;
+ const char * FileExtension() const;
bool IsValid() const;
bool IsDirectory() const { return sFile.length() == 0; }
bool IsFile() const { return sFile.length() > 0; }
@@ -132,8 +134,4 @@ operator<<( csv::bostream & o_rOut,
-
#endif
-
-
-