File:  [parser3project] / parser3 / src / include / Attic / pa_vcframe.h
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Sun Feb 25 14:23:31 2001 UTC (25 years, 4 months ago) by paf
Branches: MAIN
CVS tags: HEAD
would now get fields into interm VFielded class

/*
  $Id: pa_vcframe.h,v 1.2 2001/02/25 14:23:31 paf Exp $
*/

#ifndef PA_VCFRAME_H
#define PA_VCFRAME_H

#include "pa_wwrapper.h"
#include "pa_vunknown.h"

class VCodeFrame : public WWrapper {
public: // Value

	// all: for error reporting after fail(), etc
	const char *type() const { return "CodeFrame"; }

	// codeframe: accumulated string
	String *get_string() { return string_wcontext.get_string(); };

public: // WContext

	// codeframe: intercepting string writes 
	void write(String *astring);

public: // usage

	VCodeFrame(Pool& apool, WContext& awcontext) : 
		WWrapper(apool, &awcontext, awcontext.constructing()),

		string_wcontext(apool, 
			0 /* value not used, only write(string) */,
			false /* value not used, only write(string) */) {
	}

public:
	
	WContext string_wcontext;

};

#endif

E-mail: