alaCarte Maps
Renderer for OpenStreetMap tiles
stleaf.hpp
Go to the documentation of this file.
1 
21 #pragma once
22 #ifndef _STLEAF_HPP
23 #define _STLEAF_HPP
24 
25 
26 
27 
28 #include "settings.hpp"
29 #include "server/eval/stnode.hpp"
30 
31 
32 namespace eval {
33 
39 class STLeaf
40  : public STNode
41 {
42 public:
43  STLeaf(const string& value);
44 
45  virtual string eval(GeoObject* obj) const;
46 
47 private:
49  const string value;
50 };
51 
52 
53 
54 
55 
56 }
57 
58 
59 
60 #endif
Represents a leaf in the eval syntax tree.
Definition: stleaf.hpp:39
STLeaf(const string &value)
Creates a leaf with a given string value.
Definition: stleaf.cpp:34
const string value
The value given back.
Definition: stleaf.hpp:49
This file is part of alaCarte.
The interface for nodes in the syntax tree.
Definition: stnode.hpp:37
virtual string eval(GeoObject *obj) const
Evaluates a subtree under this node.
Definition: stleaf.cpp:41