meteo-vm2  2.0.11
Public Member Functions | Public Attributes | List of all members
meteo::vm2::CoreSource Struct Reference

#include <source.h>

Public Member Functions

 CoreSource (const std::string &path, lua_State *L)
 Load the attributes file path in Lua VM L.
 
 ~CoreSource ()
 Unload the attributes.
 
void lua_push_station (int id)
 Push on top of the stack the station attributes (or nil if not found)
 
void lua_push_variable (int id)
 Push on top of the stack the variable attributes (or nil if not found)
 
std::vector< int > lua_find_stations (int idx)
 List of station id matching the table at the given index.
 
std::vector< int > lua_find_variables (int idx)
 List of station id matching the table at the given index.
 

Public Attributes

std::string path
 
lua_State * L
 
int stations_ref
 
int variables_ref
 
int filter_ref
 

Detailed Description

Attributes file reader.

This class loads the attributes file (see VM2 attributes file) in a previously opened Lua interpreter.

The stations and variables attributes are stored in Lua references.

Definition at line 57 of file source.h.


The documentation for this struct was generated from the following files: