Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

systemfile.h

Go to the documentation of this file.
00001 #ifndef __SYSTEMFILE__H
00002 #define __SYSTEMFILE__H
00003 
00004 #include <qstring.h>
00005 #include <qtextstream.h>
00006 
00007 class QFile;
00008 class ANetNodeInstance;
00009 
00010 class SystemFile : public QTextStream {
00011 
00012 public :
00013 
00014     SystemFile( const QString & Name, 
00015                 const QString & Path,
00016                 bool KnowsDevicesInstances );
00017     SystemFile( const QString & Name, 
00018                 bool KnowsDevicesInstances = 0 );
00019     ~SystemFile( void );
00020 
00021     void setName( const QString & S )
00022       { Name = S; }
00023     const QString & name( void ) const
00024       { return Name; }
00025 
00026     void setPath( const QString & S )
00027       { Path = S; }
00028     const QString & path( void ) const
00029       { return Path; }
00030 
00031     bool  knowsDeviceInstances( void ) const
00032       { return KnowsDeviceInstances; }
00033 
00034     void setAppendMode( bool A)
00035       { InAppend = A; };
00036     bool open( void );
00037     bool close( void );
00038 
00039     bool preSection( void );
00040     bool postSection( void );
00041     bool preNodeSection( ANetNodeInstance * NNI, long DevNr );
00042     bool postNodeSection( ANetNodeInstance * NNI, long DevNr );
00043     bool preDeviceSection( ANetNode * NN );
00044     bool postDeviceSection( ANetNode * NN );
00045 
00046 private :
00047 
00048     QString Name;
00049     QString Path;
00050     QFile * F;
00051     bool hasPreSection;
00052     bool hasPostSection;
00053     bool hasPreNodeSection;
00054     bool hasPostNodeSection;
00055     bool hasPreDeviceSection;
00056     bool hasPostDeviceSection;
00057     bool KnowsDeviceInstances;
00058     bool InAppend;
00059 
00060 };
00061 #endif

Generated on Sat Nov 5 16:17:54 2005 for OPIE by  doxygen 1.4.2