1 
2 /* Web Polygraph       http://www.web-polygraph.org/
3  * Copyright 2003-2011 The Measurement Factory
4  * Licensed under the Apache License, Version 2.0 */
5 
6 #ifndef POLYGRAPH__PGL_PGLREC_H
7 #define POLYGRAPH__PGL_PGLREC_H
8 
9 #include "xparser/SynSymTbl.h"
10 
11 // holds "record"-like or "struct"-like info
12 // records can be nested
13 class PglRec: public SynSymTbl {
14 	public:
15 		PglRec();
16 		virtual ~PglRec();
17 
18 		virtual SynSymTblItem **valp(const String &key);
19 		PglRec *clone() const;
20 		void copyCommon(const PglRec &rec);
21 
22 		// builds a SynSymTblItem and adds it
23 		SynSymTblItem *bAdd(const String &type, const String &name, SynSym *s);
24 };
25 
26 #endif
27