additional/streams/IsstreamWithComments.cpp

Go to the documentation of this file.
00001 //## begin module%37B8C54700AE.cm preserve=no
00002 //        %X% %Q% %Z% %W%
00003 //## end module%37B8C54700AE.cm
00004 
00005 //## begin module%37B8C54700AE.cp preserve=no
00006 //## end module%37B8C54700AE.cp
00007 
00008 //## Module: IsstreamWithComments%37B8C54700AE; Pseudo Package body
00009 //## Source file: E:\mpk\code\additional\streams\IsstreamWithComments.cpp
00010 
00011 //## begin module%37B8C54700AE.additionalIncludes preserve=no
00012 //## end module%37B8C54700AE.additionalIncludes
00013 
00014 //## begin module%37B8C54700AE.includes preserve=yes
00015 //## end module%37B8C54700AE.includes
00016 
00017 // IsstreamWithComments
00018 #include "IsstreamWithComments.h"
00019 //## begin module%37B8C54700AE.additionalDeclarations preserve=yes
00020 //## end module%37B8C54700AE.additionalDeclarations
00021 
00022 
00023 // Class IsstreamWithComments 
00024 
00025 
00026 IsstreamWithComments::IsstreamWithComments (char* s, int size)
00027   //## begin IsstreamWithComments::IsstreamWithComments%935034312.hasinit preserve=no
00028       : commentChar('%')
00029   //## end IsstreamWithComments::IsstreamWithComments%935034312.hasinit
00030   //## begin IsstreamWithComments::IsstreamWithComments%935034312.initialization preserve=yes
00031   ,istrstream( s, size ) 
00032   //## end IsstreamWithComments::IsstreamWithComments%935034312.initialization
00033 {
00034   //## begin IsstreamWithComments::IsstreamWithComments%935034312.body preserve=yes
00035   //## end IsstreamWithComments::IsstreamWithComments%935034312.body
00036 }
00037 
00038 
00039 IsstreamWithComments::~IsstreamWithComments()
00040 {
00041   //## begin IsstreamWithComments::~IsstreamWithComments%.body preserve=yes
00042   //## end IsstreamWithComments::~IsstreamWithComments%.body
00043 }
00044 
00045 
00046 
00047 //## Other Operations (implementation)
00048 IsstreamWithComments& IsstreamWithComments::getline (char* s, int streamsize, char delim)
00049 {
00050   //## begin IsstreamWithComments::getline%934854391.body preserve=yes
00051         istrstream::getline( s, streamsize, delim ) ;
00052         
00053         while( s[ 0 ] == commentChar )
00054         {
00055                 istrstream::getline( s, streamsize, delim ) ;
00056         }
00057         return *this ;
00058   //## end IsstreamWithComments::getline%934854391.body
00059 }
00060 
00061 // Additional Declarations
00062   //## begin IsstreamWithComments%37B8C54700AE.declarations preserve=yes
00063   //## end IsstreamWithComments%37B8C54700AE.declarations
00064 
00065 //## begin module%37B8C54700AE.epilog preserve=yes
00066 //## end module%37B8C54700AE.epilog

Generated on Sat Apr 1 21:30:30 2006 for Motion Planning Kernel by  doxygen 1.4.6-NO