indra::base::config Namespace Reference


Classes

class  IndraConfig

Functions

def load
def dump
def update
def get
def set
def get_config

Variables

 _g_config = None


Detailed Description

\
@file config.py
@brief Utility module for parsing and accessing the indra.xml config file.

$LicenseInfo:firstyear=2006&license=mit$

Copyright (c) 2006-2008, Linden Research, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
$/LicenseInfo$

Function Documentation

def indra::base::config::dump (   indra_xml_file,
  indra_cfg = None,
  update_in_mem = False 
)

Dump config contents into a file
Kindof reverse of load.
Optionally takes a new config to dump.
Does NOT update global config unless requested.

Definition at line 180 of file config.py.

Referenced by LLMemoryView::dumpData(), LLMemoryView::LLMemoryView(), and LLMessageSystem::processAcks().

Here is the caller graph for this function:

def indra::base::config::get (   key,
  default = None 
)

Definition at line 219 of file config.py.

def indra::base::config::get_config (  ) 

Definition at line 242 of file config.py.

def indra::base::config::load (   indra_xml_file = None  ) 

Definition at line 167 of file config.py.

Referenced by LLAudioSource::update().

Here is the caller graph for this function:

def indra::base::config::set (   key,
  newval 
)

Sets the value of the config setting of key to be newval

Once any key/value pair is changed via the set method,
that key/value pair will remain set with that value until
change via the update or set method or program termination

Definition at line 227 of file config.py.

Referenced by LLSelectMgr::deselectHighlightedObjects(), LLViewerObjectList::update(), and LLSelectMgr::updateSilhouettes().

Here is the caller graph for this function:

def indra::base::config::update (   new_conf  ) 


Variable Documentation

Definition at line 38 of file config.py.


Generated on Fri May 16 09:42:23 2008 for SecondLife by  doxygen 1.5.5