CACAO
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
Properties Class Reference

Commandline properties. More...

Public Member Functions

 Properties ()
 Constructor fills the properties list with default values. More...
 
void put (const char *key, const char *value)
 Put the given property into the internal property map. More...
 
const char * get (const char *key)
 Get a property entry from the internal property map. More...
 
void fill (java_handle_t *p)
 Fill the given Java system properties with all properties from the internal properties map. More...
 
void dump ()
 Dump all property entries. More...
 

Static Public Member Functions

static void put (java_handle_t *p, const char *key, const char *value)
 Add the given property to the given Java system properties. More...
 

Private Member Functions

 Properties (const Properties &)
 

Private Attributes

std::map< const char *, const
char *, ltstr
_properties
 

Detailed Description

Commandline properties.

Definition at line 45 of file properties.hpp.

Constructor & Destructor Documentation

Properties::Properties ( const Properties )
private
Properties::Properties ( )

Constructor fills the properties list with default values.

Definition at line 60 of file properties.cpp.

Member Function Documentation

void Properties::dump ( )

Dump all property entries.

Definition at line 642 of file properties.cpp.

void Properties::fill ( java_handle_t p)

Fill the given Java system properties with all properties from the internal properties map.

Parameters
pJava Properties object.

Definition at line 611 of file properties.cpp.

const char * Properties::get ( const char *  key)

Get a property entry from the internal property map.

Parameters
keyKey.
Returns
Value associated with the key or NULL when not found.

Definition at line 590 of file properties.cpp.

void Properties::put ( java_handle_t p,
const char *  key,
const char *  value 
)
static

Add the given property to the given Java system properties.

Parameters
pJava properties object.
keyKey.
valueValue.

Definition at line 531 of file properties.cpp.

void Properties::put ( const char *  key,
const char *  value 
)

Put the given property into the internal property map.

If there's already an entry with the same key, replace it.

Parameters
keyKey.
valueValue.

Definition at line 561 of file properties.cpp.

Field Documentation

std::map<const char*, const char*, ltstr> Properties::_properties
private

Definition at line 47 of file properties.hpp.


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