zorba::PropertiesGlobal

#include <zorba/properties_base.h>

Inherited from: zorba::PropertiesBase

This class provides access to global properties. This class provides access to global properties set for Zorba in environment and configuration file. It is available using Zorba.getProperties() method.

Returns

{ Zorba::getProperties() }

Public Functions

std::string

check_args()

void

copy_args(const char **argv)

const char **

get_all_options() const =0

void

getJVMClassPath(std::string &jvmClasspath)

Get global JVM classpath property.

const std::vector< std::string > &

getPositionalArgs() const

void

init_val(const char *str, T &val, unsigned delta=0)

ZORBA_DLL_PUBLIC void

init_val(const char *str, std::string &val, unsigned delta)

ZORBA_DLL_PUBLIC void

init_val(const char *str, std::vector< std::string > &val, unsigned delta)

std::string

load_all(const char *cfgFilename, const std::string &env_pfx, int argc, const char **argv)

std::string

load_argv(int argc, const char **argv)=0

std::string

load_env(const std::string &env_pfx)

std::string

load_env(const std::string &env_pfx, const char **options)

std::string

load_file(const char *fname)

void

setJVMClassPath(const std::string &jvmClasspath)

Set global JVM classpath property.

~PropertiesGlobal()

Protected Attributes

std::vector< std::string >

thePositionalArgs

Public Functions

check_args

std::string check_args()

copy_args

void copy_args(const char **argv)

get_all_options

const char ** get_all_options() const =0

getJVMClassPath

void getJVMClassPath(std::string &jvmClasspath)

Get global JVM classpath property.

Before the JVM is started this will return the classpath set by command line option, the CLASSPATH environment variable and in Zorba config file.After the JVM is started this will contain in addition the paths to jars used by modules that make use of the JVM.

getPositionalArgs

const std::vector< std::string > & getPositionalArgs() const

init_val

void init_val(const char *str, T &val, unsigned delta=0)

init_val

ZORBA_DLL_PUBLIC void init_val(const char *str, std::string &val, unsigned delta)

init_val

ZORBA_DLL_PUBLIC void init_val(const char *str, std::vector< std::string > &val, unsigned delta)

load_all

std::string load_all(const char *cfgFilename, const std::string &env_pfx, int argc, const char **argv)

load_argv

std::string load_argv(int argc, const char **argv)=0

load_env

std::string load_env(const std::string &env_pfx)

load_env

std::string load_env(const std::string &env_pfx, const char **options)

load_file

std::string load_file(const char *fname)

setJVMClassPath

void setJVMClassPath(const std::string &jvmClasspath)

Set global JVM classpath property.

This method should be used to set additional JVM classpath for modules that make use of JVM. This will overide the classpath set by CLASSPATH environment variable or Zorba config file.Once the JVM is started this method doesn't have any effect.

~PropertiesGlobal

 ~PropertiesGlobal()

Protected Attributes

thePositionalArgs

std::vector< std::string > thePositionalArgs