FlightGear next
NasalSGPath.cxx File Reference
#include "NasalSGPath.hxx"
#include <Main/globals.hxx>
#include <simgear/misc/sg_path.hxx>
#include <simgear/nasal/cppbind/NasalHash.hxx>
#include <simgear/nasal/cppbind/Ghost.hxx>

Go to the source code of this file.

Typedefs

typedef std::shared_ptr< SGPath > SGPathRef
 
typedef nasal::Ghost< SGPathRefNasalSGPath
 

Functions

static naRef validatedPathToNasal (const nasal::CallContext &ctx, const SGPath &p)
 
static naRef f_new_path (const nasal::CallContext &ctx)
 os.path.new()
 
static int f_path_create_dir (SGPath &p, const nasal::CallContext &ctx)
 
static void f_path_set (SGPath &p, const nasal::CallContext &ctx)
 
static naRef f_desktop (const nasal::CallContext &ctx)
 os.path.desktop()
 
static naRef f_standardLocation (const nasal::CallContext &ctx)
 os.path.standardLocation(type)
 
naRef initNasalSGPath (naRef globals, naContext c)
 

Typedef Documentation

◆ NasalSGPath

typedef nasal::Ghost<SGPathRef> NasalSGPath

Definition at line 31 of file NasalSGPath.cxx.

◆ SGPathRef

typedef std::shared_ptr<SGPath> SGPathRef

Definition at line 30 of file NasalSGPath.cxx.

Function Documentation

◆ f_desktop()

static naRef f_desktop ( const nasal::CallContext & ctx)
static

os.path.desktop()

Definition at line 63 of file NasalSGPath.cxx.

◆ f_new_path()

static naRef f_new_path ( const nasal::CallContext & ctx)
static

os.path.new()

Definition at line 44 of file NasalSGPath.cxx.

◆ f_path_create_dir()

static int f_path_create_dir ( SGPath & p,
const nasal::CallContext & ctx )
static

Definition at line 49 of file NasalSGPath.cxx.

◆ f_path_set()

static void f_path_set ( SGPath & p,
const nasal::CallContext & ctx )
static

Definition at line 55 of file NasalSGPath.cxx.

◆ f_standardLocation()

static naRef f_standardLocation ( const nasal::CallContext & ctx)
static

os.path.standardLocation(type)

Definition at line 72 of file NasalSGPath.cxx.

◆ initNasalSGPath()

naRef initNasalSGPath ( naRef globals,
naContext c )

Definition at line 94 of file NasalSGPath.cxx.

◆ validatedPathToNasal()

static naRef validatedPathToNasal ( const nasal::CallContext & ctx,
const SGPath & p )
static

Definition at line 34 of file NasalSGPath.cxx.