diff options
Diffstat (limited to '_lua_data_model_8h_source.html')
-rw-r--r-- | _lua_data_model_8h_source.html | 183 |
1 files changed, 93 insertions, 90 deletions
diff --git a/_lua_data_model_8h_source.html b/_lua_data_model_8h_source.html index d173f27..ccbba0f 100644 --- a/_lua_data_model_8h_source.html +++ b/_lua_data_model_8h_source.html @@ -89,7 +89,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); <div id="nav-path" class="navpath"> <ul> -<li class="navelem"><a class="el" href="dir_38c8d24aef3972a7f87b834274e76e31.html">plugins</a></li><li class="navelem"><a class="el" href="dir_7cfdd7134d700922c16c1342750b4180.html">datamodel</a></li><li class="navelem"><a class="el" href="dir_c209148fa119566e51df5b585c35bcc4.html">lua</a></li> </ul> +<li class="navelem"><a class="el" href="dir_2cd592331b95683ae50c1625a7a0233f.html">plugins</a></li><li class="navelem"><a class="el" href="dir_752b259a3f32424381c44f18ca58e729.html">datamodel</a></li><li class="navelem"><a class="el" href="dir_2505f6062adfb436b9bee41f84a7b796.html">lua</a></li> </ul> </div> </div><!-- top --> <div class="header"> @@ -101,99 +101,102 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#ifndef LUADATAMODEL_H_113E014C</span></div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#define LUADATAMODEL_H_113E014C</span></div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div> -<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "<a class="code" href="_data_model_impl_8h.html">uscxml/plugins/DataModelImpl.h</a>"</span></div> -<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <list></span></div> -<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div> -<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div> -<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "lua.h"</span></div> -<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "lualib.h"</span></div> -<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "lauxlib.h"</span></div> -<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> }</div> -<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div> -<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#ifdef BUILD_AS_PLUGINS</span></div> -<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "uscxml/plugins/Plugins.h"</span></div> -<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#endif</span></div> -<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div> +<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "uscxml/config.h"</span></div> +<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="_data_model_impl_8h.html">uscxml/plugins/DataModelImpl.h</a>"</span></div> +<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <list></span></div> +<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div> +<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div> +<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "lua.h"</span></div> +<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "lualib.h"</span></div> +<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include "lauxlib.h"</span></div> +<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> }</div> +<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div> +<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#ifdef BUILD_AS_PLUGINS</span></div> +<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include "<a class="code" href="_plugins_8h.html">uscxml/plugins/Plugins.h</a>"</span></div> +<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div> -<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="keyword">namespace </span><a class="code" href="namespaceuscxml.html">uscxml</a> {</div> -<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">class </span>Event;</div> -<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">class </span>Data;</div> -<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> }</div> -<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div> -<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">namespace </span><a class="code" href="namespaceuscxml.html">uscxml</a> {</div> -<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div> -<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classuscxml_1_1_lua_data_model.html"> 49</a></span> <span class="keyword">class </span><a class="code" href="classuscxml_1_1_lua_data_model.html">LuaDataModel</a> : <span class="keyword">public</span> <a class="code" href="classuscxml_1_1_data_model_impl.html">DataModelImpl</a> {</div> -<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="keyword">public</span>:</div> -<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <a class="code" href="classuscxml_1_1_lua_data_model.html">LuaDataModel</a>();</div> -<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keyword">virtual</span> ~<a class="code" href="classuscxml_1_1_lua_data_model.html">LuaDataModel</a>();</div> -<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keyword">virtual</span> std::shared_ptr<DataModelImpl> <a class="code" href="classuscxml_1_1_lua_data_model.html#a97d212198d59ebd5e26fed65042463a2">create</a>(<a class="code" href="classuscxml_1_1_data_model_callbacks.html">DataModelCallbacks</a>* callbacks);</div> -<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div> -<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classuscxml_1_1_lua_data_model.html#a3d99dd50bf50bfd589baaa1fc018a341">addExtension</a>(<a class="code" href="classuscxml_1_1_data_model_extension.html">DataModelExtension</a>* ext);</div> -<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div> -<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classuscxml_1_1_lua_data_model.html#a11cc56d5ae2f5e21fa31cb8b512dc6b6"> 57</a></span>  <span class="keyword">virtual</span> std::list<std::string> <a class="code" href="classuscxml_1_1_lua_data_model.html#a11cc56d5ae2f5e21fa31cb8b512dc6b6">getNames</a>() {</div> -<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  std::list<std::string> names;</div> -<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  names.push_back(<span class="stringliteral">"lua"</span>);</div> -<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">return</span> names;</div> -<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  }</div> -<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div> -<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classuscxml_1_1_lua_data_model.html#adbb91f4ff766238630440c6cef9e598c">isValidSyntax</a>(<span class="keyword">const</span> std::string& expr);</div> -<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div> -<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classuscxml_1_1_lua_data_model.html#aa4e52fbeb039c2ed76dc58394b260d5e">setEvent</a>(<span class="keyword">const</span> <a class="code" href="classuscxml_1_1_event.html">Event</a>& event);</div> -<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div> -<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="comment">// foreach</span></div> -<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keyword">virtual</span> uint32_t <a class="code" href="classuscxml_1_1_lua_data_model.html#a4f4581f16a704dab7adf2032e86f9952">getLength</a>(<span class="keyword">const</span> std::string& expr);</div> -<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classuscxml_1_1_lua_data_model.html#a47f07d7e4ddf50b3f06bd4403c14aaf4">setForeach</a>(<span class="keyword">const</span> std::string& item,</div> -<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keyword">const</span> std::string& array,</div> -<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keyword">const</span> std::string& index,</div> -<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  uint32_t iteration);</div> -<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> </div> -<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classuscxml_1_1_lua_data_model.html#ace03d51690c585927d52bda9374e47b5">evalAsBool</a>(<span class="keyword">const</span> std::string& expr);</div> -<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keyword">virtual</span> <a class="code" href="classuscxml_1_1_data.html">Data</a> <a class="code" href="classuscxml_1_1_lua_data_model.html#acb5af93dd9f860d6921c17455ec67cd8">evalAsData</a>(<span class="keyword">const</span> std::string& expr);</div> -<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keyword">virtual</span> <a class="code" href="classuscxml_1_1_data.html">Data</a> <a class="code" href="classuscxml_1_1_lua_data_model.html#a6be27f1c53558dfe3b3871f31ece79a1">getAsData</a>(<span class="keyword">const</span> std::string& content);</div> -<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> </div> -<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classuscxml_1_1_lua_data_model.html#a00a3dec5c2c74d656ae144e812a2a8af">isDeclared</a>(<span class="keyword">const</span> std::string& expr);</div> -<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div> -<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classuscxml_1_1_lua_data_model.html#a0e4030feed63efaf6e0e07012b4fc212">assign</a>(<span class="keyword">const</span> std::string& location, <span class="keyword">const</span> <a class="code" href="classuscxml_1_1_data.html">Data</a>& data);</div> -<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classuscxml_1_1_lua_data_model.html#a387f5d60474bf5dbcd52e7a600dc0765">init</a>(<span class="keyword">const</span> std::string& location, <span class="keyword">const</span> <a class="code" href="classuscxml_1_1_data.html">Data</a>& data);</div> -<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div> -<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keyword">virtual</span> std::string <a class="code" href="classuscxml_1_1_lua_data_model.html#a77f0f840033e50f3d06d9e8463edb1ad">andExpressions</a>(std::list<std::string>);</div> -<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div> -<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="keyword">protected</span>:</div> -<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div> -<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keyword">static</span> <span class="keywordtype">int</span> luaInFunction(lua_State * l);</div> -<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div> -<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  lua_State* _luaState;</div> -<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> };</div> +<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div> +<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">namespace </span><a class="code" href="namespaceuscxml.html">uscxml</a> {</div> +<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">class </span>Event;</div> +<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">class </span>Data;</div> +<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> }</div> +<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div> +<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="keyword">namespace </span><a class="code" href="namespaceuscxml.html">uscxml</a> {</div> +<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div> +<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classuscxml_1_1_lua_data_model.html"> 50</a></span> <span class="keyword">class </span><a class="code" href="classuscxml_1_1_lua_data_model.html">LuaDataModel</a> : <span class="keyword">public</span> <a class="code" href="classuscxml_1_1_data_model_impl.html">DataModelImpl</a> {</div> +<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="keyword">public</span>:</div> +<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <a class="code" href="classuscxml_1_1_lua_data_model.html">LuaDataModel</a>();</div> +<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keyword">virtual</span> ~<a class="code" href="classuscxml_1_1_lua_data_model.html">LuaDataModel</a>();</div> +<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keyword">virtual</span> std::shared_ptr<DataModelImpl> <a class="code" href="classuscxml_1_1_lua_data_model.html#a97d212198d59ebd5e26fed65042463a2">create</a>(<a class="code" href="classuscxml_1_1_data_model_callbacks.html">DataModelCallbacks</a>* callbacks);</div> +<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div> +<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classuscxml_1_1_lua_data_model.html#a3d99dd50bf50bfd589baaa1fc018a341">addExtension</a>(<a class="code" href="classuscxml_1_1_data_model_extension.html">DataModelExtension</a>* ext);</div> +<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div> +<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classuscxml_1_1_lua_data_model.html#a11cc56d5ae2f5e21fa31cb8b512dc6b6"> 58</a></span>  <span class="keyword">virtual</span> std::list<std::string> <a class="code" href="classuscxml_1_1_lua_data_model.html#a11cc56d5ae2f5e21fa31cb8b512dc6b6">getNames</a>() {</div> +<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  std::list<std::string> names;</div> +<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  names.push_back(<span class="stringliteral">"lua"</span>);</div> +<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">return</span> names;</div> +<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  }</div> +<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div> +<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classuscxml_1_1_lua_data_model.html#adbb91f4ff766238630440c6cef9e598c">isValidSyntax</a>(<span class="keyword">const</span> std::string& expr);</div> +<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div> +<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classuscxml_1_1_lua_data_model.html#aa4e52fbeb039c2ed76dc58394b260d5e">setEvent</a>(<span class="keyword">const</span> <a class="code" href="classuscxml_1_1_event.html">Event</a>& event);</div> +<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div> +<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="comment">// foreach</span></div> +<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keyword">virtual</span> uint32_t <a class="code" href="classuscxml_1_1_lua_data_model.html#a4f4581f16a704dab7adf2032e86f9952">getLength</a>(<span class="keyword">const</span> std::string& expr);</div> +<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classuscxml_1_1_lua_data_model.html#a47f07d7e4ddf50b3f06bd4403c14aaf4">setForeach</a>(<span class="keyword">const</span> std::string& item,</div> +<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keyword">const</span> std::string& array,</div> +<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keyword">const</span> std::string& index,</div> +<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  uint32_t iteration);</div> +<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div> +<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classuscxml_1_1_lua_data_model.html#ace03d51690c585927d52bda9374e47b5">evalAsBool</a>(<span class="keyword">const</span> std::string& expr);</div> +<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keyword">virtual</span> <a class="code" href="classuscxml_1_1_data.html">Data</a> <a class="code" href="classuscxml_1_1_lua_data_model.html#acb5af93dd9f860d6921c17455ec67cd8">evalAsData</a>(<span class="keyword">const</span> std::string& expr);</div> +<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keyword">virtual</span> <a class="code" href="classuscxml_1_1_data.html">Data</a> <a class="code" href="classuscxml_1_1_lua_data_model.html#a6be27f1c53558dfe3b3871f31ece79a1">getAsData</a>(<span class="keyword">const</span> std::string& content);</div> +<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div> +<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classuscxml_1_1_lua_data_model.html#a00a3dec5c2c74d656ae144e812a2a8af">isDeclared</a>(<span class="keyword">const</span> std::string& expr);</div> +<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div> +<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classuscxml_1_1_lua_data_model.html#a219638e3d2e2b31299cef042f2ce8f77">assign</a>(<span class="keyword">const</span> std::string& location,</div> +<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keyword">const</span> <a class="code" href="classuscxml_1_1_data.html">Data</a>& data,</div> +<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keyword">const</span> std::map<std::string, std::string>& attr = std::map<std::string, std::string>());</div> +<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classuscxml_1_1_lua_data_model.html#a556fb0f2ba387f08afff55df300d21de">init</a>(<span class="keyword">const</span> std::string& location,</div> +<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keyword">const</span> <a class="code" href="classuscxml_1_1_data.html">Data</a>& data,</div> +<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keyword">const</span> std::map<std::string, std::string>& attr = std::map<std::string, std::string>());</div> +<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div> +<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="keyword">protected</span>:</div> +<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> </div> +<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keyword">static</span> <span class="keywordtype">int</span> luaInFunction(lua_State * l);</div> <div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div> -<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="preprocessor">#ifdef BUILD_AS_PLUGINS</span></div> -<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> PLUMA_INHERIT_PROVIDER(LuaDataModel, DataModelImpl);</div> -<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="preprocessor">#endif</span></div> -<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div> -<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> }</div> -<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div> -<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="preprocessor">#endif </span><span class="comment">/* end of include guard: LUADATAMODEL_H_113E014C */</span><span class="preprocessor"></span></div> -<div class="ttc" id="classuscxml_1_1_lua_data_model_html_acb5af93dd9f860d6921c17455ec67cd8"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#acb5af93dd9f860d6921c17455ec67cd8">uscxml::LuaDataModel::evalAsData</a></div><div class="ttdeci">virtual Data evalAsData(const std::string &expr)</div><div class="ttdoc">Return a string as an evaluated Data object. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:327</div></div> +<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  lua_State* _luaState;</div> +<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> };</div> +<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div> +<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="preprocessor">#ifdef BUILD_AS_PLUGINS</span></div> +<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> PLUMA_INHERIT_PROVIDER(LuaDataModel, DataModelImpl)</div> +<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="preprocessor">#endif</span></div> +<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div> +<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> }</div> +<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div> +<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="preprocessor">#endif </span><span class="comment">/* end of include guard: LUADATAMODEL_H_113E014C */</span><span class="preprocessor"></span></div> +<div class="ttc" id="classuscxml_1_1_lua_data_model_html_acb5af93dd9f860d6921c17455ec67cd8"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#acb5af93dd9f860d6921c17455ec67cd8">uscxml::LuaDataModel::evalAsData</a></div><div class="ttdeci">virtual Data evalAsData(const std::string &expr)</div><div class="ttdoc">Return a string as an evaluated Data object. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:351</div></div> <div class="ttc" id="namespaceuscxml_html"><div class="ttname"><a href="namespaceuscxml.html">uscxml</a></div><div class="ttdef"><b>Definition:</b> Breakpoint.cpp:26</div></div> -<div class="ttc" id="classuscxml_1_1_lua_data_model_html_a3d99dd50bf50bfd589baaa1fc018a341"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#a3d99dd50bf50bfd589baaa1fc018a341">uscxml::LuaDataModel::addExtension</a></div><div class="ttdeci">virtual void addExtension(DataModelExtension *ext)</div><div class="ttdoc">Register an extension to get data into and out of the data-model. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:246</div></div> -<div class="ttc" id="classuscxml_1_1_lua_data_model_html_a00a3dec5c2c74d656ae144e812a2a8af"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#a00a3dec5c2c74d656ae144e812a2a8af">uscxml::LuaDataModel::isDeclared</a></div><div class="ttdeci">virtual bool isDeclared(const std::string &expr)</div><div class="ttdoc">Determine whether a given variable / location is declared. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:443</div></div> -<div class="ttc" id="classuscxml_1_1_lua_data_model_html_a11cc56d5ae2f5e21fa31cb8b512dc6b6"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#a11cc56d5ae2f5e21fa31cb8b512dc6b6">uscxml::LuaDataModel::getNames</a></div><div class="ttdeci">virtual std::list< std::string > getNames()</div><div class="ttdoc">Return a list of names to be matched by the datamodel attribute in SCXML. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.h:57</div></div> +<div class="ttc" id="classuscxml_1_1_lua_data_model_html_a3d99dd50bf50bfd589baaa1fc018a341"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#a3d99dd50bf50bfd589baaa1fc018a341">uscxml::LuaDataModel::addExtension</a></div><div class="ttdeci">virtual void addExtension(DataModelExtension *ext)</div><div class="ttdoc">Register an extension to get data into and out of the data-model. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:269</div></div> +<div class="ttc" id="classuscxml_1_1_lua_data_model_html_a219638e3d2e2b31299cef042f2ce8f77"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#a219638e3d2e2b31299cef042f2ce8f77">uscxml::LuaDataModel::assign</a></div><div class="ttdeci">virtual void assign(const std::string &location, const Data &data, const std::map< std::string, std::string > &attr=std::map< std::string, std::string >())</div><div class="ttdoc">Assign a data object to a location in the data-model. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:476</div></div> +<div class="ttc" id="classuscxml_1_1_lua_data_model_html_a00a3dec5c2c74d656ae144e812a2a8af"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#a00a3dec5c2c74d656ae144e812a2a8af">uscxml::LuaDataModel::isDeclared</a></div><div class="ttdeci">virtual bool isDeclared(const std::string &expr)</div><div class="ttdoc">Determine whether a given variable / location is declared. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:470</div></div> +<div class="ttc" id="classuscxml_1_1_lua_data_model_html_a11cc56d5ae2f5e21fa31cb8b512dc6b6"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#a11cc56d5ae2f5e21fa31cb8b512dc6b6">uscxml::LuaDataModel::getNames</a></div><div class="ttdeci">virtual std::list< std::string > getNames()</div><div class="ttdoc">Return a list of names to be matched by the datamodel attribute in SCXML. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.h:58</div></div> <div class="ttc" id="_data_model_impl_8h_html"><div class="ttname"><a href="_data_model_impl_8h.html">DataModelImpl.h</a></div></div> -<div class="ttc" id="classuscxml_1_1_lua_data_model_html_a77f0f840033e50f3d06d9e8463edb1ad"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#a77f0f840033e50f3d06d9e8463edb1ad">uscxml::LuaDataModel::andExpressions</a></div><div class="ttdeci">virtual std::string andExpressions(std::list< std::string >)</div><div class="ttdoc">Concat the given terms into a conjunctive form. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:586</div></div> -<div class="ttc" id="classuscxml_1_1_data_model_extension_html"><div class="ttname"><a href="classuscxml_1_1_data_model_extension.html">uscxml::DataModelExtension</a></div><div class="ttdef"><b>Definition:</b> DataModelImpl.h:59</div></div> -<div class="ttc" id="classuscxml_1_1_data_model_impl_html"><div class="ttname"><a href="classuscxml_1_1_data_model_impl.html">uscxml::DataModelImpl</a></div><div class="ttdoc">Abstract base class for all data-model implementations. </div><div class="ttdef"><b>Definition:</b> DataModelImpl.h:75</div></div> -<div class="ttc" id="classuscxml_1_1_lua_data_model_html"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html">uscxml::LuaDataModel</a></div><div class="ttdoc">Lua data-model. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.h:49</div></div> -<div class="ttc" id="classuscxml_1_1_lua_data_model_html_aa4e52fbeb039c2ed76dc58394b260d5e"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#aa4e52fbeb039c2ed76dc58394b260d5e">uscxml::LuaDataModel::setEvent</a></div><div class="ttdeci">virtual void setEvent(const Event &event)</div><div class="ttdoc">Set the given event as _event in the data-model's global scope. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:250</div></div> -<div class="ttc" id="classuscxml_1_1_lua_data_model_html_a0e4030feed63efaf6e0e07012b4fc212"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#a0e4030feed63efaf6e0e07012b4fc212">uscxml::LuaDataModel::assign</a></div><div class="ttdeci">virtual void assign(const std::string &location, const Data &data)</div><div class="ttdoc">Assign a data object to a location in the data-model. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:449</div></div> -<div class="ttc" id="classuscxml_1_1_lua_data_model_html_a97d212198d59ebd5e26fed65042463a2"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#a97d212198d59ebd5e26fed65042463a2">uscxml::LuaDataModel::create</a></div><div class="ttdeci">virtual std::shared_ptr< DataModelImpl > create(DataModelCallbacks *callbacks)</div><div class="ttdoc">The Factory wants to instantiate a new instance. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:189</div></div> -<div class="ttc" id="classuscxml_1_1_lua_data_model_html_adbb91f4ff766238630440c6cef9e598c"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#adbb91f4ff766238630440c6cef9e598c">uscxml::LuaDataModel::isValidSyntax</a></div><div class="ttdeci">virtual bool isValidSyntax(const std::string &expr)</div><div class="ttdoc">Determine whether a given string constitutes valid syntax in the data-model's language. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:371</div></div> -<div class="ttc" id="classuscxml_1_1_lua_data_model_html_ace03d51690c585927d52bda9374e47b5"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#ace03d51690c585927d52bda9374e47b5">uscxml::LuaDataModel::evalAsBool</a></div><div class="ttdeci">virtual bool evalAsBool(const std::string &expr)</div><div class="ttdoc">Evaluate a given expression as a boolean. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:547</div></div> -<div class="ttc" id="classuscxml_1_1_lua_data_model_html_a47f07d7e4ddf50b3f06bd4403c14aaf4"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#a47f07d7e4ddf50b3f06bd4403c14aaf4">uscxml::LuaDataModel::setForeach</a></div><div class="ttdeci">virtual void setForeach(const std::string &item, const std::string &array, const std::string &index, uint32_t iteration)</div><div class="ttdoc">Set a given item to the object at a given index for one iteration. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:423</div></div> -<div class="ttc" id="classuscxml_1_1_event_html"><div class="ttname"><a href="classuscxml_1_1_event.html">uscxml::Event</a></div><div class="ttdef"><b>Definition:</b> Event.h:84</div></div> -<div class="ttc" id="classuscxml_1_1_lua_data_model_html_a4f4581f16a704dab7adf2032e86f9952"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#a4f4581f16a704dab7adf2032e86f9952">uscxml::LuaDataModel::getLength</a></div><div class="ttdeci">virtual uint32_t getLength(const std::string &expr)</div><div class="ttdoc">Evaluate the given expression as something iterable and return its length. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:385</div></div> +<div class="ttc" id="classuscxml_1_1_lua_data_model_html_a556fb0f2ba387f08afff55df300d21de"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#a556fb0f2ba387f08afff55df300d21de">uscxml::LuaDataModel::init</a></div><div class="ttdeci">virtual void init(const std::string &location, const Data &data, const std::map< std::string, std::string > &attr=std::map< std::string, std::string >())</div><div class="ttdoc">Initialize a variable / location in the data-model with a given data object. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:588</div></div> +<div class="ttc" id="classuscxml_1_1_data_model_extension_html"><div class="ttname"><a href="classuscxml_1_1_data_model_extension.html">uscxml::DataModelExtension</a></div><div class="ttdef"><b>Definition:</b> DataModelImpl.h:61</div></div> +<div class="ttc" id="classuscxml_1_1_data_model_impl_html"><div class="ttname"><a href="classuscxml_1_1_data_model_impl.html">uscxml::DataModelImpl</a></div><div class="ttdoc">Abstract base class for all data-model implementations. </div><div class="ttdef"><b>Definition:</b> DataModelImpl.h:77</div></div> +<div class="ttc" id="classuscxml_1_1_lua_data_model_html"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html">uscxml::LuaDataModel</a></div><div class="ttdoc">Lua data-model. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.h:50</div></div> +<div class="ttc" id="classuscxml_1_1_lua_data_model_html_aa4e52fbeb039c2ed76dc58394b260d5e"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#aa4e52fbeb039c2ed76dc58394b260d5e">uscxml::LuaDataModel::setEvent</a></div><div class="ttdeci">virtual void setEvent(const Event &event)</div><div class="ttdoc">Set the given event as _event in the data-model's global scope. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:273</div></div> +<div class="ttc" id="_plugins_8h_html"><div class="ttname"><a href="_plugins_8h.html">Plugins.h</a></div></div> +<div class="ttc" id="classuscxml_1_1_lua_data_model_html_a97d212198d59ebd5e26fed65042463a2"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#a97d212198d59ebd5e26fed65042463a2">uscxml::LuaDataModel::create</a></div><div class="ttdeci">virtual std::shared_ptr< DataModelImpl > create(DataModelCallbacks *callbacks)</div><div class="ttdoc">The Factory wants to instantiate a new instance. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:209</div></div> +<div class="ttc" id="classuscxml_1_1_lua_data_model_html_adbb91f4ff766238630440c6cef9e598c"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#adbb91f4ff766238630440c6cef9e598c">uscxml::LuaDataModel::isValidSyntax</a></div><div class="ttdeci">virtual bool isValidSyntax(const std::string &expr)</div><div class="ttdoc">Determine whether a given string constitutes valid syntax in the data-model's language. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:398</div></div> +<div class="ttc" id="classuscxml_1_1_lua_data_model_html_ace03d51690c585927d52bda9374e47b5"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#ace03d51690c585927d52bda9374e47b5">uscxml::LuaDataModel::evalAsBool</a></div><div class="ttdeci">virtual bool evalAsBool(const std::string &expr)</div><div class="ttdoc">Evaluate a given expression as a boolean. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:593</div></div> +<div class="ttc" id="classuscxml_1_1_lua_data_model_html_a47f07d7e4ddf50b3f06bd4403c14aaf4"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#a47f07d7e4ddf50b3f06bd4403c14aaf4">uscxml::LuaDataModel::setForeach</a></div><div class="ttdeci">virtual void setForeach(const std::string &item, const std::string &array, const std::string &index, uint32_t iteration)</div><div class="ttdoc">Set a given item to the object at a given index for one iteration. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:450</div></div> +<div class="ttc" id="classuscxml_1_1_event_html"><div class="ttname"><a href="classuscxml_1_1_event.html">uscxml::Event</a></div><div class="ttdef"><b>Definition:</b> Event.h:94</div></div> +<div class="ttc" id="classuscxml_1_1_lua_data_model_html_a4f4581f16a704dab7adf2032e86f9952"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#a4f4581f16a704dab7adf2032e86f9952">uscxml::LuaDataModel::getLength</a></div><div class="ttdeci">virtual uint32_t getLength(const std::string &expr)</div><div class="ttdoc">Evaluate the given expression as something iterable and return its length. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:412</div></div> <div class="ttc" id="classuscxml_1_1_data_model_callbacks_html"><div class="ttname"><a href="classuscxml_1_1_data_model_callbacks.html">uscxml::DataModelCallbacks</a></div><div class="ttdoc">Callbacks available for every data-model. </div><div class="ttdef"><b>Definition:</b> DataModelImpl.h:47</div></div> -<div class="ttc" id="classuscxml_1_1_lua_data_model_html_a387f5d60474bf5dbcd52e7a600dc0765"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#a387f5d60474bf5dbcd52e7a600dc0765">uscxml::LuaDataModel::init</a></div><div class="ttdeci">virtual void init(const std::string &location, const Data &data)</div><div class="ttdoc">Initialize a variable / location in the data-model with a given data object. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:542</div></div> -<div class="ttc" id="classuscxml_1_1_lua_data_model_html_a6be27f1c53558dfe3b3871f31ece79a1"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#a6be27f1c53558dfe3b3871f31ece79a1">uscxml::LuaDataModel::getAsData</a></div><div class="ttdeci">virtual Data getAsData(const std::string &content)</div><div class="ttdoc">Return a string as an unevaluated Data object. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:563</div></div> -<div class="ttc" id="classuscxml_1_1_data_html"><div class="ttname"><a href="classuscxml_1_1_data.html">uscxml::Data</a></div><div class="ttdef"><b>Definition:</b> Data.h:43</div></div> +<div class="ttc" id="classuscxml_1_1_lua_data_model_html_a6be27f1c53558dfe3b3871f31ece79a1"><div class="ttname"><a href="classuscxml_1_1_lua_data_model.html#a6be27f1c53558dfe3b3871f31ece79a1">uscxml::LuaDataModel::getAsData</a></div><div class="ttdeci">virtual Data getAsData(const std::string &content)</div><div class="ttdoc">Return a string as an unevaluated Data object. </div><div class="ttdef"><b>Definition:</b> LuaDataModel.cpp:609</div></div> +<div class="ttc" id="classuscxml_1_1_data_html"><div class="ttname"><a href="classuscxml_1_1_data.html">uscxml::Data</a></div><div class="ttdef"><b>Definition:</b> Data.h:44</div></div> </div><!-- fragment --></div><!-- contents --> <!-- HTML footer for doxygen 1.8.8--> <!-- start footer part --> @@ -203,7 +206,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); </div> </div> <!-- <hr class="footer"/><address class="footer"><small> -Generated on Mon Dec 12 2016 19:50:04 for uSCXML by  <a href="http://www.doxygen.org/index.html"> +Generated on Sun Apr 30 2017 22:52:19 for uSCXML by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.10 </small></address> --> |