Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

cw_itoken_spec.cc

Go to the documentation of this file.
00001 /*
00002  *  File:       cw_itoken_spec.cc
00003  *              $Id: cw_itoken_spec.cc,v 1.1 2002/05/04 17:46:53 alec Exp $
00004  *
00005  *  Author:     Alec Panoviciu (alecu@email.com)
00006  *
00007  *  Comments:
00008  *
00009  *  Revision history:
00010  *
00011  *  $Log: cw_itoken_spec.cc,v $
00012  *  Revision 1.1  2002/05/04 17:46:53  alec
00013  *  *** empty log message ***
00014  *
00015  */
00016 
00017 /* 
00018   Copyright (C) 2002 Alexandru Panoviciu (alecu@email.com)
00019 
00020   This program is free software; you can redistribute it and/or modify
00021   it under the terms of the GNU General Public License as published by
00022   the Free Software Foundation; either version 2 of the License, or
00023   (at your option) any later version.
00024 
00025   This program is distributed in the hope that it will be useful,
00026   but WITHOUT ANY WARRANTY; without even the implied warranty of
00027   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00028   GNU General Public License for more details.
00029 
00030   You should have received a copy of the GNU General Public License
00031   along with this program; if not, write to the Free Software
00032   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00033 
00034  */
00035 
00036 
00037 #include "debug.h"
00038 #include "cw_itoken_spec.h"
00039 #include "itoken_spec.hh"
00040 
00041 ITokenSpec *cw_tokenSpec = NULL;
00042 
00043 
00044 CLINK void ITokenSpec_setClassName (char *className_)
00045 {
00046   ASSERT((cw_tokenSpec != NULL) && (className_ != NULL),
00047          "Assertion failed in call to ITokenSpec_setClassName");
00048   cw_tokenSpec->setClassName(string(className_));
00049 }
00050 
00051 CLINK void ITokenSpec_setInheritance (char *inheritance_)
00052 {
00053   ASSERT((cw_tokenSpec != NULL) && (inheritance_ != NULL),
00054          "Assertion failed in call to ITokenSpec_setInheritance");
00055   
00056   cw_tokenSpec->setInheritance(string(inheritance_), Position(yylineno));
00057 }
00058 
00059 CLINK void ITokenSpec_setPreambleCode (char *preambleCode_)
00060 {
00061   ASSERT(cw_tokenSpec != NULL,
00062          "Assertion failed in call to ITokenSpec_setPreambleCode");
00063   if (preambleCode_ == NULL) preambleCode_ = "";
00064   
00065   cw_tokenSpec->setPreambleCode(string(preambleCode_), Position(yylineno));
00066 }
00067 
00068 CLINK void ITokenSpec_addCodeBlock (char *block_)
00069 {
00070   ASSERT((cw_tokenSpec != NULL) && (block_ != NULL),
00071          "Assertion failed in call to ITokenSpec_addCodeBlock");
00072   
00073   cw_tokenSpec->addCodeBlock(string(block_), Position(yylineno));
00074 }

Generated at Tue Jul 9 21:05:43 2002 for CppCC by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001