Public Member Functions | Protected Attributes
zorba::PropertiesGlobal Class Reference

This class provides access to global properties. More...

#include <zorba/properties_base.h>

Inheritance diagram for zorba::PropertiesGlobal:
Inheritance graph
[legend]
Collaboration diagram for zorba::PropertiesGlobal:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual std::string check_args ()
void copy_args (const char **argv)
virtual const char ** get_all_options () const =0
virtual void getJVMClassPath (std::string &jvmClasspath)
 Get global JVM classpath property.
const std::vector< std::string > & getPositionalArgs () const
template<class T >
void init_val (const char *str, T &val, unsigned delta=0)
template<>
ZORBA_DLL_PUBLIC void init_val (const char *str, std::string &val, unsigned delta)
template<>
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)
virtual 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)
virtual void setJVMClassPath (const std::string &jvmClasspath)
 Set global JVM classpath property.
virtual ~PropertiesGlobal ()

Protected Attributes

std::vector< std::string > thePositionalArgs

Detailed Description

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.

See also:
{ Zorba::getProperties() }

Definition at line 112 of file properties_base.h.


Constructor & Destructor Documentation

virtual zorba::PropertiesGlobal::~PropertiesGlobal ( )
inlinevirtual

Definition at line 115 of file properties_base.h.


Member Function Documentation

virtual std::string zorba::PropertiesBase::check_args ( )
inlinevirtualinherited

Definition at line 69 of file properties_base.h.

void zorba::PropertiesBase::copy_args ( const char **  argv)
inlineinherited

Definition at line 76 of file properties_base.h.

virtual const char** zorba::PropertiesBase::get_all_options ( ) const
pure virtualinherited
virtual void zorba::PropertiesGlobal::getJVMClassPath ( std::string &  jvmClasspath)
inlinevirtual

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.

Definition at line 127 of file properties_base.h.

const std::vector<std::string>& zorba::PropertiesBase::getPositionalArgs ( ) const
inlineinherited

Definition at line 71 of file properties_base.h.

template<class T >
void zorba::PropertiesBase::init_val ( const char *  str,
T &  val,
unsigned  delta = 0 
)
inlineinherited

Definition at line 84 of file properties_base.h.

References zorba::locale::iso639_1::is.

template<>
ZORBA_DLL_PUBLIC void zorba::PropertiesBase::init_val ( const char *  str,
std::string &  val,
unsigned  delta 
)
inherited
template<>
ZORBA_DLL_PUBLIC void zorba::PropertiesBase::init_val ( const char *  str,
std::vector< std::string > &  val,
unsigned  delta 
)
inherited
std::string zorba::PropertiesBase::load_all ( const char *  cfgFilename,
const std::string &  env_pfx,
int  argc,
const char **  argv 
)
inlineinherited

Definition at line 39 of file properties_base.h.

virtual std::string zorba::PropertiesBase::load_argv ( int  argc,
const char **  argv 
)
pure virtualinherited
std::string zorba::PropertiesBase::load_env ( const std::string &  env_pfx)
inlineinherited

Definition at line 56 of file properties_base.h.

std::string zorba::PropertiesBase::load_env ( const std::string &  env_pfx,
const char **  options 
)
inherited
std::string zorba::PropertiesBase::load_file ( const char *  fname)
inherited
virtual void zorba::PropertiesGlobal::setJVMClassPath ( const std::string &  jvmClasspath)
inlinevirtual

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.

Definition at line 138 of file properties_base.h.


Member Data Documentation

std::vector<std::string> zorba::PropertiesBase::thePositionalArgs
protectedinherited

Definition at line 34 of file properties_base.h.


The documentation for this class was generated from the following file:
blog comments powered by Disqus