Annotation of parser3/src/types/pa_venv.h, revision 1.43
1.10 paf 1: /** @file
1.14 paf 2: Parser: @b env class decl.
1.10 paf 3:
1.42 moko 4: Copyright (c) 2001-2017 Art. Lebedev Studio (http://www.artlebedev.com)
1.20 paf 5: Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.2 paf 6: */
7:
8: #ifndef PA_VENV_H
9: #define PA_VENV_H
1.22 paf 10:
1.43 ! moko 11: #define IDENT_PA_VENV_H "$Id: pa_venv.h,v 1.42 2017/02/07 22:00:47 moko Exp $"
1.29 paf 12:
13: // includes
1.2 paf 14:
1.13 paf 15: #include "pa_sapi.h"
1.41 moko 16: #include "pa_vstateless_class.h"
1.2 paf 17:
1.10 paf 18: /// env class
1.41 moko 19: class VEnv: public VStateless_class {
1.29 paf 20: SAPI_Info& finfo;
1.2 paf 21: public: // Value
22:
1.41 moko 23: const char* type() const { return "env"; }
1.2 paf 24:
1.39 misha 25: // env: field
1.37 misha 26: Value* get_element(const String& aname);
1.2 paf 27:
1.43 ! moko 28: /// request: (key)=value
! 29: override const VJunction* put_element(const String& name, Value* value);
! 30:
1.2 paf 31: public: // usage
32:
1.29 paf 33: VEnv(SAPI_Info& ainfo):
34:
35: finfo(ainfo) {}
1.2 paf 36:
37: };
38:
39: #endif
E-mail: