(file) Return to FileSystem.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/FileSystem.h between version 1.17 and 1.18

version 1.17, 2002/03/19 22:55:59 version 1.18, 2002/05/06 20:13:08
Line 342 
Line 342 
     return FileSystem::getFileSize(realPath, size);     return FileSystem::getFileSize(realPath, size);
 } }
  
   inline Boolean Open(PEGASUS_STD(ifstream)& is, const String& path)
   {
       char* tmpPath = path.allocateCString();
       is.open(tmpPath);
       delete [] tmpPath;
       return !!is;
   }
   
   inline Boolean Open(PEGASUS_STD(ofstream)& os, const String& path)
   {
       char* tmpPath = path.allocateCString();
       os.open(tmpPath);
       delete [] tmpPath;
       return !!os;
   }
   
   inline Boolean OpenAppend(PEGASUS_STD(ofstream)& os, const String& path)
   {
       char* tmpPath = path.allocateCString();
       os.open(tmpPath, PEGASUS_STD(ios::app));
       delete [] tmpPath;
       return !!os;
   }
   
   /** Get the next line from the input file.
   */
   PEGASUS_COMMON_LINKAGE Boolean GetLine(PEGASUS_STD(istream)& is, String& line);
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
  
 #endif /* Pegasus_FileSystem_h */ #endif /* Pegasus_FileSystem_h */


Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2