Annotation of parser3/src/types/pa_vunknown.h, revision 1.1
1.1 ! paf 1: /*
! 2: Parser
! 3: Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
! 4: Author: Alexander Petrosyan <paf@design.ru>
! 5:
! 6: $Id: pa_vunknown.h,v 1.9 2001/03/10 16:34:37 paf Exp $
! 7: */
! 8:
! 9: #ifndef PA_VUNKNOWN_H
! 10: #define PA_VUNKNOWN_H
! 11:
! 12: #include "pa_value.h"
! 13: #include "core.h"
! 14:
! 15: class VUnknown : public Value {
! 16: public: // Value
! 17:
! 18: // all: for error reporting after fail(), etc
! 19: const char *type() const { return "unknown"; }
! 20:
! 21: // unknown: ""
! 22: const String *get_string() { return empty_string; }
! 23: // unknown: false
! 24: bool get_defined() { return false; }
! 25: // unknown: false
! 26: bool get_bool() { return false; }
! 27:
! 28: public: // usage
! 29:
! 30: VUnknown(Pool& apool) : Value(apool) {
! 31: }
! 32:
! 33: };
! 34:
! 35: #endif
E-mail: