[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-cvs] CVS: paragui/include pgfilearchive.h,1.3,1.3.6.1
From: |
Alexander Pipelka <address@hidden> |
Subject: |
[paragui-cvs] CVS: paragui/include pgfilearchive.h,1.3,1.3.6.1 |
Date: |
Tue, 28 May 2002 05:41:48 -0400 |
Update of /cvsroot/paragui/paragui/include
In directory subversions:/tmp/cvs-serv458/include
Modified Files:
Tag: devel-1-0
pgfilearchive.h
Log Message:
Added patch from Andrew Ford <address@hidden>
This one adds
PG_FileArchive::GetFileList()
PG_FileArchive::GetSearchPathList()
returning a vector of strings.
Index: pgfilearchive.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pgfilearchive.h,v
retrieving revision 1.3
retrieving revision 1.3.6.1
diff -C2 -r1.3 -r1.3.6.1
*** pgfilearchive.h 15 Apr 2002 13:35:35 -0000 1.3
--- pgfilearchive.h 28 May 2002 09:41:44 -0000 1.3.6.1
***************
*** 48,51 ****
--- 48,54 ----
#include "pgdatacontainer.h"
+ #include <vector>
+ #include <string>
+
//! File open mode
enum PG_OPEN_MODE {
***************
*** 55,58 ****
--- 58,64 ----
};
+ //! PG_FileList type (vector of strings)
+ typedef std::vector< std::string > PG_FileList;
+
/**
* @author Alexander Pipelka
***************
*** 263,266 ****
--- 269,297 ----
static void EnableSymlinks(bool followSymlinks);
+ //! Get the names of all registered archives
+ /*!
+
+ This function returns a vector of strings containing the names
+ of all currently registered archives (Added via AddArchive)
+
+ \note The caller owns the returned vector and is responsible for
deleting the returned structure.
+
+ \return the file list
+ */
+ static PG_FileList* GetSearchPathList();
+
+
+ //! Get the names of all files in a directory
+ /*!
+
+ This function returns a vector of strings containing the names
+ of all files in the specified directory.
+
+ \note The caller owns the returned vector and is responsible for
deleting the returned structure.
+ \param dir directory to list files in
+ \return the file list
+ */
+ static PG_FileList* GetFileList(const char *dir);
+
private:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/include pgfilearchive.h,1.3,1.3.6.1,
Alexander Pipelka <address@hidden> <=