Annotation of parser3/src/include/pa_vstring.h, revision 1.1
1.1 ! paf 1: /*
! 2: $Id: pa_wcontext.h,v 1.4 2001/02/22 08:25:51 paf Exp $
! 3: */
! 4:
! 5: #ifndef PA_VSTRING_H
! 6: #define PA_VSTRING_H
! 7:
! 8: #include "pa_value.h"
! 9:
! 10: class VString : public Value {
! 11: public: // Value
! 12:
! 13: // all: for error reporting after fail(), etc
! 14: /*virtual*/ const char *type() const { return "VString"; }
! 15: // string: value
! 16: /*virtual*/ String *get_string() { return string; };
! 17: // string: value
! 18: void put_string(String *astring) { string=astring; }
! 19:
! 20: public: // usage
! 21:
! 22: VString(String *astring) : Value(astring->pool()),
! 23: string(astring) {
! 24: }
! 25:
! 26: private:
! 27: String *string;
! 28:
! 29: };
! 30:
! 31: #endif
E-mail: