gsmincl.h

来自「Gambit 是一个游戏库理论软件」· C头文件 代码 · 共 115 行

H
115
字号
//// $Source: /home/gambit/CVS/gambit/sources/gcl/gsmincl.h,v $// $Date: 2002/08/27 18:57:18 $// $Revision: 1.2 $//// DESCRIPTION:// Miscellaneous GCL functions//// This file is part of Gambit// Copyright (c) 2002, The Gambit Project//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, or// (at your option) any later version.//// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the// GNU General Public License for more details.//// You should have received a copy of the GNU General Public License// along with this program; if not, write to the Free Software// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.//#ifndef GSMINCL_H#define GSMINCL_H#include "base/base.h"class gOutput;#define rcFAIL     0#define rcSUCCESS -1#define rcQUIT    -2#define  porNULLSPEC  true#define  porBOOLEAN            ( 0x00000001 )#define  porPRECISION          ( 0x00000002 )#define  porINTEGER            ( 0x00000004 )#define  porNUMBER             ( 0x00000008 )#define  porTEXT               ( 0x00000010 )#define  porNFOUTCOME          ( 0x00000020 )#define  porNFG                ( 0x00000040 )#define  porEFG                ( 0x00000100 )#define  porMIXED              ( 0x00000400 )#define  porBEHAV              ( 0x00001000 )#define  porEFOUTCOME          ( 0x00004000 )#define  porINFOSET            ( 0x00010000 )#define  porNFSUPPORT          ( 0x00040000 )#define  porEFSUPPORT          ( 0x00100000 )#define  porEFBASIS            ( 0x00200000 )#define  porNFPLAYER           ( 0x00400000 )#define  porEFPLAYER           ( 0x00800000 )#define  porNODE               ( 0x01000000 )#define  porACTION             ( 0x02000000 )#define  porREFERENCE          ( 0x04000000 )#define  porOUTPUT             ( 0x08000000 )#define  porINPUT              ( 0x10000000 )#define  porSTRATEGY           ( 0x20000000 )#define  porNULL               ( 0x40000000 )#define  porUNDEFINED          ( 0x80000000 )#define  porANYTYPE            ( 0xFFFFFFFF )#define  NLIST 32767class PortionSpec{public:  unsigned long Type;  unsigned int ListDepth;  bool Null;  PortionSpec(const PortionSpec& spec)    : Type(spec.Type), ListDepth(spec.ListDepth), Null(spec.Null)    {}  PortionSpec(unsigned long type = 0,	      unsigned int listdepth = 0,	      bool null = false )    : Type(type), ListDepth(listdepth), Null(null)    {}  ~PortionSpec()  {}  bool operator==(const PortionSpec& spec) const  {    return (Type==spec.Type &&	    ListDepth==spec.ListDepth &&	    Null==spec.Null);  }};bool PortionSpecMatch( const PortionSpec& t1, const PortionSpec& t2 );gText PortionSpecToText( const PortionSpec& type );PortionSpec TextToPortionSpec( const gText& text );void PrintPortionSpec( gOutput& s, PortionSpec type );gOutput& operator << ( gOutput& s, PortionSpec spec );#endif // GSMINCL_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?