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

/ray/src/vm/functype.cc

Go to the documentation of this file.
00001 /*
00002  * vm/functype.cc
00003  * 
00004  * VM function type. 
00005  * 
00006  * Copyright (c) 2004 by Wolfgang Wieser ] wwieser (a) gmx <*> de [ 
00007  * 
00008  * This file may be distributed and/or modified under the terms of the 
00009  * GNU General Public License version 2 as published by the Free Software 
00010  * Foundation. (See COPYING.GPL for details.)
00011  * 
00012  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00013  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00014  * 
00015  */
00016 
00017 #include "functype.h"
00018 
00019 
00020 namespace VM
00021 {
00022 
00023 TLString FuncType::TypeString() const
00024 {
00025     TLString str;
00026     
00027     char tmp[2];
00028     int idx=0;
00029     
00030     if(exported) tmp[idx++]='e';
00031     else tmp[idx++]='s';
00032     switch(id)
00033     {
00034         case Unknown:   tmp[idx++]='*';  break;
00035         case Function:  tmp[idx++]='f';  break;
00036         case Method:    tmp[idx++]='m';  break;
00037         case VMethod:   tmp[idx++]='v';  break;
00038         default:        tmp[idx++]='?';  break;
00039     }
00040     str.assign(tmp,idx);
00041     
00042     return(str);
00043 }
00044 
00045 }  // end of namespace VM

Generated on Sat Feb 19 22:33:46 2005 for Ray by doxygen 1.3.5