Annotation of parser3/src/types/pa_vmath.h, revision 1.14.2.1
1.1 parser 1: /** @file
2: Parser: @b math class decls.
3:
1.14 paf 4: Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com)
1.6 paf 5: Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.1 parser 6: */
7:
8: #ifndef PA_VMATH_H
9: #define PA_VMATH_H
1.8 paf 10:
1.14.2.1! paf 11: static const char* IDENT_VMATH_H="$Date: 2003/01/21 15:51:20 $";
! 12:
! 13: // includes
1.1 parser 14:
15: #include "classes.h"
16: #include "pa_common.h"
17:
18: /**
19: */
1.14.2.1! paf 20: class VMath: public VStateless_class {
1.1 parser 21: public: // Value
22:
23: const char *type() const { return "math"; }
24:
1.2 parser 25: // math: CLASS,method,field
1.14.2.1! paf 26: ValuePtr get_element(ConstStringPtr aname, Value& aself, bool looking_up) {
1.2 parser 27: // $CLASS,$method
1.14.2.1! paf 28: if(ValuePtr result=VStateless_class::get_element(aname, aself, looking_up))
1.1 parser 29: return result;
30:
31: // $const
1.14.2.1! paf 32: return fconsts.get(aname);
1.1 parser 33: }
34:
35: public: // usage
36:
1.14.2.1! paf 37: VMath();
1.1 parser 38:
39: private:
40:
1.14.2.1! paf 41: HashStringValue fconsts;
1.1 parser 42:
43: };
44:
45: #endif
E-mail: