Annotation of parser3/src/types/pa_vunknown.h, revision 1.2

1.1       paf         1: /*
                      2:        Parser
                      3:        Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
1.2     ! paf         4:        Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
1.1       paf         5: 
1.2     ! paf         6:        $Id: pa_vunknown.h,v 1.1 2001/03/11 07:52:46 paf Exp $
1.1       paf         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: