meteo-vm2  2.0.11
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
meteo::vm2::Source Class Reference

#include <source.h>

Public Member Functions

 Source (const std::string &path)
 
void lua_push_station (int id)
 
void lua_push_variable (int id)
 
std::vector< int > lua_find_stations (int idx)
 
std::vector< int > lua_find_variables (int idx)
 

Static Public Member Functions

static Sourceget ()
 

Public Attributes

lua_State * L
 Lua VM.
 

Detailed Description

Helper class for CoreSource, creates the CoreSource and the Lua interpreter.

Definition at line 83 of file source.h.

Member Function Documentation

◆ get()

Source * meteo::vm2::Source::get ( )
static

Get the default source (singleton) using the default path (METEO_VM2_SOURCE environment variable or, if unset, $sharedstatedir/meteo-vm2/source/default.luac).

Definition at line 145 of file source.cc.

◆ lua_find_stations()

std::vector< int > meteo::vm2::Source::lua_find_stations ( int  idx)
See also
CoreSource::lua_find_stations

Definition at line 168 of file source.cc.

◆ lua_find_variables()

std::vector< int > meteo::vm2::Source::lua_find_variables ( int  idx)
See also
CoreSource::lua_find_variables

Definition at line 171 of file source.cc.

◆ lua_push_station()

void meteo::vm2::Source::lua_push_station ( int  id)
See also
CoreSource::lua_push_station

Definition at line 162 of file source.cc.

◆ lua_push_variable()

void meteo::vm2::Source::lua_push_variable ( int  id)
See also
CoreSource::lua_push_variable

Definition at line 165 of file source.cc.


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