From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/class_NLMISC__COFile.html | 551 +++++++++++++++++++++++++++++ 1 file changed, 551 insertions(+) create mode 100644 docs/doxygen/nel/class_NLMISC__COFile.html (limited to 'docs/doxygen/nel/class_NLMISC__COFile.html') diff --git a/docs/doxygen/nel/class_NLMISC__COFile.html b/docs/doxygen/nel/class_NLMISC__COFile.html new file mode 100644 index 00000000..89b0e65f --- /dev/null +++ b/docs/doxygen/nel/class_NLMISC__COFile.html @@ -0,0 +1,551 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
Documentation 
+ +
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  
+

NLMISC::COFile Class Reference

Output File. +More... +

+#include <file.h> +

+Inheritance diagram for NLMISC::COFile

Inheritance graph
+ + + +
[legend]
Collaboration diagram for NLMISC::COFile:

Collaboration graph
+ + + +
[legend]
List of all members. + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

 COFile ()
 Object. NB: destructor close() the stream. More...

 COFile (const std::string &path, bool append=false, bool text=false)
 ~COFile ()
bool open (const std::string &path, bool append=false, bool text=false)
 Open a file for writing. false if failed. close() if a file was opened. More...

void close ()
 Explicit close. More...

void flush ()
 flush the file. More...

bool seek (sint32 offset, IStream::TSeekOrigin origin) throw (EStream)
 Seek the file. More...

sint32 getPos () throw (EStream)
 Gt the location of the file pointer. More...

virtual void serialBuffer (uint8 *buf, uint len) throw (EWriteError)
 Method to be specified by the Deriver. More...


Protected Methods

virtual void serialBit (bool &bit) throw (EWriteError)

Private Attributes

FILE* _F
std::string _FileName
+

Detailed Description

+Output File. +

+

+Author(s):
+ Lionel Berenguier , Nevrax France
+Date:
+ 2000
+

+ +

+Definition at line 112 of file file.h.


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + +
+NLMISC::COFile::COFile ( + +) +
+
+ + + + + +
+   + + +

+Object. NB: destructor close() the stream. +

+ +

+Definition at line 147 of file file.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + +
+NLMISC::COFile::COFile ( + +const std::string & path, +
+bool append = false, +
+bool text = false ) +
+
+ + + + + +
+   + + +

+ +

+Definition at line 154 of file file.cpp.

+

+ + + + +
+ + + + + + +
+NLMISC::COFile::~COFile ( + +) +
+
+ + + + + +
+   + + +

+ +

+Definition at line 161 of file file.cpp.

+


Member Function Documentation

+

+ + + + +
+ + + + + + +
+void NLMISC::COFile::close ( + +) +
+
+ + + + + +
+   + + +

+Explicit close. +

+ +

+Definition at line 181 of file file.cpp.

+

+ + + + +
+ + + + + + +
+void NLMISC::COFile::flush ( + +) +
+
+ + + + + +
+   + + +

+flush the file. +

+ +

+Definition at line 191 of file file.cpp.

+

+ + + + +
+ + + + + + +
+sint32 NLMISC::COFile::getPos ( + +void ) throw (EStream) [virtual] +
+
+ + + + + +
+   + + +

+Gt the location of the file pointer. +

+ +

+Reimplemented from NLMISC::IStream. +

+Definition at line 243 of file file.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + +
+bool NLMISC::COFile::open ( + +const std::string & path, +
+bool append = false, +
+bool text = false ) +
+
+ + + + + +
+   + + +

+Open a file for writing. false if failed. close() if a file was opened. +

+ +

+Definition at line 166 of file file.cpp.

+

+ + + + +
+ + + + + + + + + + +
+bool NLMISC::COFile::seek ( + +sint32 offset, +
+IStream::TSeekOrigin origin ) throw (EStream) +
+
+ + + + + +
+   + + +

+Seek the file. +

+ +

+Definition at line 216 of file file.cpp.

+

+ + + + +
+ + + + + + +
+void NLMISC::COFile::serialBit ( + +bool & bit ) throw (EWriteError) [protected, virtual] +
+
+ + + + + +
+   + + +

+ +

+Reimplemented from NLMISC::IStream. +

+Definition at line 209 of file file.cpp.

+

+ + + + +
+ + + + + + + + + + +
+void NLMISC::COFile::serialBuffer ( + +uint8 * buf, +
+uint len ) throw (EWriteError) [virtual] +
+
+ + + + + +
+   + + +

+Method to be specified by the Deriver. +

+

+Warning:
+ Do not call these methods from outside, unless you really know what you are doing. Using them instead of serial() can lead to communication problems between different platforms !
+

+Reimplemented from NLMISC::IStream. +

+Definition at line 201 of file file.cpp.

+


Member Data Documentation

+

+ + + + +
+ + + + + +
+FILE * NLMISC::COFile::_F [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 141 of file file.h.

+

+ + + + +
+ + + + + +
+std::string NLMISC::COFile::_FileName [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 142 of file file.h.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1