Annotation of parser3/src/types/pa_vmemory.h, revision 1.3
1.2 paf 1: /** @file
2: Parser: @b memory parser class.
3:
4: Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com)
5: Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
6: */
7:
8: #ifndef PA_VMEMORY_H
9: #define PA_VMEMORY_H
10:
1.3 ! paf 11: static const char * const IDENT_VMEMORY_H="$Date: 2003/07/24 11:31:26 $";
1.2 paf 12:
13: #include "classes.h"
14: #include "pa_vstateless_object.h"
15: #include "pa_globals.h"
16:
17: extern Methoded* memory_base_class;
18:
19: ///
20: class VMemory: public VStateless_class {
21: public: // Value
22:
23: const char* type() const { return "memory"; }
24:
25: /// memory: CLASS,method
26: Value* get_element(const String& aname, Value& aself, bool looking_up) {
27: // $CLASS,$method
28: if(Value* result=VStateless_class::get_element(aname, aself, looking_up))
29: return result;
30:
31: return 0;
32: }
33:
34: VMemory(): VStateless_class(0, memory_base_class) {}
35:
36: };
37:
38: #endif
E-mail: