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

OSGScanParseLexer.cpp

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002  *                                OpenSG                                     *
00003  *                                                                           *
00004  *                                                                           *
00005  *             Copyright (C) 2000-2002 by the OpenSG Forum                   *
00006  *                                                                           *
00007  *                            www.opensg.org                                 *
00008  *                                                                           *
00009  *   contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de          *
00010  *                                                                           *
00011 \*---------------------------------------------------------------------------*/
00012 /*---------------------------------------------------------------------------*\
00013  *                                License                                    *
00014  *                                                                           *
00015  * This library is free software; you can redistribute it and/or modify it   *
00016  * under the terms of the GNU Library General Public License as published    *
00017  * by the Free Software Foundation, version 2.                               *
00018  *                                                                           *
00019  * This library is distributed in the hope that it will be useful, but       *
00020  * WITHOUT ANY WARRANTY; without even the implied warranty of                *
00021  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
00022  * Library General Public License for more details.                          *
00023  *                                                                           *
00024  * You should have received a copy of the GNU Library General Public         *
00025  * License along with this library; if not, write to the Free Software       *
00026  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                 *
00027  *                                                                           *
00028 \*---------------------------------------------------------------------------*/
00029 /*---------------------------------------------------------------------------*\
00030  *                                Changes                                    *
00031  *                                                                           *
00032  *                                                                           *
00033  *                                                                           *
00034  *                                                                           *
00035  *                                                                           *
00036  *                                                                           *
00037 \*---------------------------------------------------------------------------*/
00038 
00044 //---------------------------------------------------------------------------
00045 //  Includes
00046 //---------------------------------------------------------------------------
00047 
00048 #include <stdlib.h>
00049 #include <stdio.h>
00050 
00051 #include "OSGConfig.h"
00052 
00053 #include <iostream>
00054 
00055 #include "OSGScanParseLexer.h"
00056 
00057 OSG_USING_NAMESPACE
00058 
00059 //---------------------------------------------------------------------------
00060 //  Class
00061 //---------------------------------------------------------------------------
00062 
00063 /***************************************************************************\
00064  *                               Types                                     *
00065 \***************************************************************************/
00066 
00067 /***************************************************************************\
00068  *                           Class variables                               *
00069 \***************************************************************************/
00070 
00071 /***************************************************************************\
00072  *                           Class methods                                 *
00073 \***************************************************************************/
00074 
00075 /*-------------------------------------------------------------------------*\
00076  -  private                                                                -
00077 \*-------------------------------------------------------------------------*/
00078 
00079 /*-------------------------------------------------------------------------*\
00080  -  protected                                                              -
00081 \*-------------------------------------------------------------------------*/
00082 
00083 /*-------------------------------------------------------------------------*\
00084  -  public                                                                 -
00085 \*-------------------------------------------------------------------------*/
00086 
00087 /***************************************************************************\
00088  *                           Instance methods                              *
00089 \***************************************************************************/
00090 
00091 /*-------------------------------------------------------------------------*\
00092  -  private                                                                -
00093 \*-------------------------------------------------------------------------*/
00094 
00095 /*-------------------------------------------------------------------------*\
00096  -  protected                                                              -
00097 \*-------------------------------------------------------------------------*/
00098 
00099 /*-------------------------------------------------------------------------*\
00100  -  public                                                                 -
00101 \*-------------------------------------------------------------------------*/
00102 
00103 /*------------- constructors & destructors --------------------------------*/
00104 
00105 OSGScanParseLexer::OSGScanParseLexer(OSG::ScanParseSkelBase *pSkelBase,
00106                                      std::istream           *arg_yyin, 
00107                                      std::ostream           *arg_yyout) :
00108      Inherited         (arg_yyin, 
00109                         arg_yyout),
00110 
00111     _pSkelBase         (pSkelBase),
00112 
00113     expectToken        (        0),        
00114     parsing_mf         (        0),     
00115     sfImageIntsExpected(        0),
00116     sfImageIntsParsed  (        0),
00117 
00118     iCommentDepth      (        0),
00119     iLastState         (        0)
00120 {
00121 }
00122 
00123 OSGScanParseLexer::~OSGScanParseLexer(void)
00124 {
00125 }
00126 
00127 /*------------------------------ access -----------------------------------*/
00128 
00129 void OSGScanParseLexer::expectType(OSG::Int32 iType)
00130 {
00131     expectToken = iType;
00132 }
00133 
00134 /*---------------------------- properties ---------------------------------*/
00135 
00136 /*-------------------------- your_category---------------------------------*/
00137 
00138 /*-------------------------- assignment -----------------------------------*/
00139 
00140 /*-------------------------- comparison -----------------------------------*/
00141 
00142 
00143 /*-------------------------------------------------------------------------*/
00144 /*                              cvs id's                                   */
00145 
00146 #ifdef OSG_SGI_CC
00147 #pragma set woff 1174
00148 #endif
00149 
00150 #ifdef OSG_LINUX_ICC
00151 #pragma warning( disable : 177 )
00152 #endif
00153 
00154 namespace 
00155 {
00156     static Char8 cvsid_cpp[] = "@(#)$Id: $";
00157     static Char8 cvsid_hpp[] = OSGSCANPARSELEXER_HEADER_CVSID;
00158 }
00159 

Generated on Thu Aug 25 04:09:07 2005 for OpenSG by  doxygen 1.4.3