Revision: 44622
          http://brlcad.svn.sourceforge.net/brlcad/?rev=44622&view=rev
Author:   davidloman
Date:     2011-05-17 17:46:20 +0000 (Tue, 17 May 2011)

Log Message:
-----------
Start work on getListing()

Modified Paths:
--------------
    geomcore/trunk/src/GS/FileDataSource.cxx

Modified: geomcore/trunk/src/GS/FileDataSource.cxx
===================================================================
--- geomcore/trunk/src/GS/FileDataSource.cxx    2011-05-17 17:09:03 UTC (rev 
44621)
+++ geomcore/trunk/src/GS/FileDataSource.cxx    2011-05-17 17:46:20 UTC (rev 
44622)
@@ -40,15 +40,23 @@
 /* get a directory listing or a child list */
 std::list<std::string>*
 FileDataSource::getListing(std::string path)
-{}
+{
+  std::string absPath = "";
+  FileDataSource::buildFullPath(&absPath, &this->repoPath, &path);
 
+
+
+}
+
 /* Get a set of BRLCAD::MinimalObjects */
 std::list<BRLCAD::MinimalObject*>*
 FileDataSource::getObjs(std::string relPath, bool recurse)
 {
-       //TODO Clean up path parsing, remove double //'s
-       std::string absPath = this->repoPath + "/" + relPath;
+       std::string absPath = "";
 
+       FileDataSource::buildFullPath(&absPath, &this->repoPath, &relPath);
+
+
        //figure out what kind of path we are dealing with;
        if (this->existsFileOrDir(absPath.c_str()) == 0)
                return NULL;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to