alaCarte Maps
Renderer for OpenStreetMap tiles
stleaf.cpp
Go to the documentation of this file.
1 
22 #include "server/eval/stleaf.hpp"
23 
24 
25 
26 namespace eval {
27 
28 
34 STLeaf::STLeaf(const string& value)
35  : value(value)
36 {
37 
38 }
39 
40 
41 string STLeaf::eval(GeoObject* obj) const
42 {
43  return value;
44 }
45 
46 
47 
48 }
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.
virtual string eval(GeoObject *obj) const
Evaluates a subtree under this node.
Definition: stleaf.cpp:41