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

ErrorValue.h

Go to the documentation of this file.
00001 // ErrorValue.h: interface for the CErrorValue class.
00002 /*
00003  * Copyright (c) 1996-2000 Erwin Coumans <[email protected]>

00004  *
00005  * Permission to use, copy, modify, distribute and sell this software

00006  * and its documentation for any purpose is hereby granted without fee,

00007  * provided that the above copyright notice appear in all copies and

00008  * that both that copyright notice and this permission notice appear

00009  * in supporting documentation.  Erwin Coumans makes no

00010  * representations about the suitability of this software for any

00011  * purpose.  It is provided "as is" without express or implied warranty.

00012  *
00013  */
00014 
00015 #if !defined _ERRORVALUE_H
00016 #define _ERRORVALUE_H
00017 
00018 #include "Value.h"
00019 
00020 class CErrorValue : public CPropValue  
00021 {
00022 
00023 public:
00024         virtual const CCString & GetText();
00025         virtual float GetNumber();
00026         CErrorValue();
00027         CErrorValue(CCString errmsg);
00028         virtual ~CErrorValue();
00029         virtual CValue* Calc(VALUE_OPERATOR op, CValue* val);
00030         virtual CValue* CalcFinal(VALUE_DATA_TYPE dtype, VALUE_OPERATOR op, CValue *val);
00031         virtual CValue* GetReplica() { 
00032                 // who would want a copy of an error ?
00033                 trace ("Error: ErrorValue::GetReplica() not implemented yet");
00034                 assertd(false);
00035                 return NULL;
00036         };
00037 
00038 
00039 private:
00040         CCString m_strErrorText;
00041 };
00042 
00043 #endif // !defined _ERRORVALUE_H

Generated at Thu Feb 1 13:03:02 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000