paragui-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paragui-cvs] CVS: paragui/src/core pgfile.cpp,1.1,1.1.6.1


From: Alexander Pipelka <address@hidden>
Subject: [paragui-cvs] CVS: paragui/src/core pgfile.cpp,1.1,1.1.6.1
Date: Fri, 07 Jun 2002 09:53:44 -0400

Update of /cvsroot/paragui/paragui/src/core
In directory subversions:/tmp/cvs-serv2068/src/core

Modified Files:
      Tag: devel-1-0
        pgfile.cpp 
Log Message:
added more file ops to PG_File



Index: pgfile.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/core/pgfile.cpp,v
retrieving revision 1.1
retrieving revision 1.1.6.1
diff -C2 -r1.1 -r1.1.6.1
*** pgfile.cpp  15 Apr 2002 14:53:56 -0000      1.1
--- pgfile.cpp  7 Jun 2002 13:53:41 -0000       1.1.6.1
***************
*** 78,79 ****
--- 78,102 ----
        return PHYSFS_fileLength((PHYSFS_file*)file);
  }
+ 
+ char PG_File::getc() {
+       char buffer = 0;
+       
+       if(read(&buffer, 1) == 1) {
+               return buffer;
+       }
+       return 0;
+ }
+       
+ std::string PG_File::getline() {
+       std::string result;
+       
+       char c = getc();
+       while(!eof() && (c != 0x0A)) {
+               if(c != 0x0D) {
+                       result += c;
+               }
+               c = getc();
+       }
+       
+       return result;
+ }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]