Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

toxic::DriverSettingsWrapper Class Reference

#include <driversettingswrapper.h>

Inheritance diagram for toxic::DriverSettingsWrapper:

toxic::DriverSettings List of all members.

Public Member Functions

 DriverSettingsWrapper ()
void Defaults ()
 Sets default values.

void Load (const std::string &filename, const std::string &home_path)
 Loads settings from a XML file. Most settings are set by the CLParser class though.

void CheckConsistency () const
 Checks settings consistency.

void Print (std::ostream &s) const
 Prints settings to a stream.


Constructor & Destructor Documentation

toxic::DriverSettingsWrapper::DriverSettingsWrapper  )  [inline]
 

Definition at line 36 of file driversettingswrapper.h.

References Defaults().


Member Function Documentation

void DriverSettingsWrapper::CheckConsistency  )  const
 

Checks settings consistency.

Definition at line 82 of file driversettingswrapper.cpp.

References toxic::Error(), and toxic::DriverSettings::IsConsistent().

Referenced by main().

void DriverSettingsWrapper::Defaults  ) 
 

Sets default values.

Definition at line 36 of file driversettingswrapper.cpp.

References toxic::DriverSettings::SettingsFiles::m_driver_settings_file, toxic::DriverSettings::PrimaryOutput::m_enabled, toxic::DriverSettings::CausticsPhotonMap::m_file, toxic::DriverSettings::GlobalPhotonMap::m_file, toxic::DriverSettings::PrimaryOutput::m_file, toxic::DriverSettings::PrimaryOutput::m_height, toxic::DriverSettings::CausticsPhotonMap::m_op, toxic::DriverSettings::GlobalPhotonMap::m_op, toxic::DriverSettings::InputFiles::m_scene_file, toxic::DriverSettings::SettingsFiles::m_scene_settings_file, and toxic::DriverSettings::PrimaryOutput::m_width.

Referenced by DriverSettingsWrapper().

void DriverSettingsWrapper::Load const std::string &  filename,
const std::string &  home_path
 

Loads settings from a XML file. Most settings are set by the CLParser class though.

Definition at line 59 of file driversettingswrapper.cpp.

References sheep::XMLConfigFile::Count(), toxic::Error(), sheep::XMLConfigFile::GetValue(), toxic::DriverSettings::Multithreading::m_rendering_threads, and toxic::PrefixStack::Push().

Referenced by load_settings().

void DriverSettingsWrapper::Print std::ostream &  s  )  const
 

Prints settings to a stream.

Definition at line 106 of file driversettingswrapper.cpp.

References toxic::ConvertNumberToString(), toxic::Indenter::Indent(), toxic::DriverSettings::SettingsFiles::m_driver_settings_file, toxic::DriverSettings::PrimaryOutput::m_enabled, toxic::DriverSettings::CausticsPhotonMap::m_file, toxic::DriverSettings::GlobalPhotonMap::m_file, toxic::DriverSettings::PrimaryOutput::m_file, toxic::DriverSettings::PrimaryOutput::m_height, toxic::DriverSettings::CausticsPhotonMap::m_op, toxic::DriverSettings::GlobalPhotonMap::m_op, toxic::DriverSettings::Multithreading::m_rendering_threads, toxic::DriverSettings::InputFiles::m_scene_file, toxic::DriverSettings::SettingsFiles::m_scene_settings_file, toxic::DriverSettings::PrimaryOutput::m_width, and NamePhotonMapOp().

Referenced by main().


The documentation for this class was generated from the following files:
Generated on Tue May 11 01:31:56 2004 for toxic by doxygen 1.3.6