Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Config.cc File Reference

Implements Config, which provides global access to system configuration information. More...

#include "Config.h"
#include "Shared/plist.h"
#include "Shared/string_util.h"
#include "Shared/RobotInfo.h"
#include <jpeglib.h>
#include <vector>
#include <string>
#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
#include <iostream>
#include <fstream>
#include <cstdio>
#include <cerrno>
#include <cstring>
#include <cctype>
#include <cmath>
#include <sys/stat.h>
#include <sys/param.h>
#include <unistd.h>
#include "Shared/ProjectInterface.h"
#include "Vision/RawCameraGenerator.h"
#include "Shared/debuget.h"
Include dependency graph for Config.cc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

plist::NamedEnumeration statics

Explicitly declaring these values allows us to relegate storage to a single translation unit instead of having it reallocated every time the class is referenced. This actually adds up to megabytes of symbols (especially with debugging info). provides string names for enumeration values (see plist::NamedEnumeration and INSTANTIATE_NAMEDENUMERATION_STATICS)

 INSTANTIATE_NAMEDENUMERATION_STATICS (Config::main_config::consoleMode_t)
 INSTANTIATE_NAMEDENUMERATION_STATICS (Config::sound_config::volume_levels)
 INSTANTIATE_NAMEDENUMERATION_STATICS (Config::transports)
 INSTANTIATE_NAMEDENUMERATION_STATICS (Config::vision_config::RawCamConfig::compression_t)
 INSTANTIATE_NAMEDENUMERATION_STATICS (Config::vision_config::encoding_t)
 INSTANTIATE_NAMEDENUMERATION_STATICS (Config::vision_config::DepthCamConfig::compression_t)
 INSTANTIATE_NAMEDENUMERATION_STATICS (Config::vision_config::SegCamConfig::compression_t)
 INSTANTIATE_NAMEDENUMERATION_STATICS (Config::vision_config::gain_levels)
 INSTANTIATE_NAMEDENUMERATION_STATICS (Config::vision_config::shutter_speeds)
 INSTANTIATE_NAMEDENUMERATION_STATICS (Config::vision_config::white_balance_levels)
 INSTANTIATE_NAMEDENUMERATION_STATICS (J_DCT_METHOD)

Variables

Configconfig = NULL
 allows global access to current settings

Detailed Description

Implements Config, which provides global access to system configuration information.

Author:
ejt (Creator)
alokl (Original configuration system)

Definition in file Config.cc.


Function Documentation

INSTANTIATE_NAMEDENUMERATION_STATICS ( J_DCT_METHOD   ) 
INSTANTIATE_NAMEDENUMERATION_STATICS ( Config::vision_config::white_balance_levels   ) 
INSTANTIATE_NAMEDENUMERATION_STATICS ( Config::vision_config::shutter_speeds   ) 
INSTANTIATE_NAMEDENUMERATION_STATICS ( Config::vision_config::gain_levels   ) 
INSTANTIATE_NAMEDENUMERATION_STATICS ( Config::vision_config::SegCamConfig::compression_t   ) 
INSTANTIATE_NAMEDENUMERATION_STATICS ( Config::vision_config::DepthCamConfig::compression_t   ) 
INSTANTIATE_NAMEDENUMERATION_STATICS ( Config::vision_config::encoding_t   ) 
INSTANTIATE_NAMEDENUMERATION_STATICS ( Config::vision_config::RawCamConfig::compression_t   ) 
INSTANTIATE_NAMEDENUMERATION_STATICS ( Config::transports   ) 
INSTANTIATE_NAMEDENUMERATION_STATICS ( Config::sound_config::volume_levels   ) 
INSTANTIATE_NAMEDENUMERATION_STATICS ( Config::main_config::consoleMode_t   ) 

Variable Documentation

Config* config = NULL

allows global access to current settings

Definition at line 46 of file Config.cc.

Referenced by HelpControl::activate(), WorldState::applyCalibration(), RawCameraGenerator::calcImage(), JPEGGenerator::calcImage(), SensorObserverControl::checkLogFile(), EventLogger::checkLogFile(), ControlBase::clearMenu(), Controller::console_callback(), SoundManager::CopyTo(), ControlBase::deactivate(), PostureMC::defaultMaxSpeed(), HeadPointerMC::defaultMaxSpeed(), ControlBase::doCancel(), WorldStateSerializerBehavior::doEvent(), SegCam::doEvent(), RegionCam::doEvent(), RawCameraGenerator::doEvent(), RawCam::doEvent(), DepthCam::doEvent(), CameraBehavior::doEvent(), BallDetectionGenerator::doEvent(), ControlBase::doNextItem(), ControlBase::doPrevItem(), ControlBase::doReadStdIn(), WaypointWalkControl::WaypointEditControl::doSelect(), WaypointWalkControl::doSelect(), WalkCalibration::doSelect(), SensorObserverControl::doSelect(), EventLogger::doSelect(), ControlBase::doSelect(), WorldStateSerializerBehavior::doStart(), WMMonitorBehavior::doStart(), HeadController::doStart(), FlashIPAddrBehavior::doStart(), EStopController::doStart(), Controller::doStart(), ArmController::doStart(), Controller::doStop(), RawCam::drawShapesIntoBuffer(), SoundManager::endPlay(), WalkCalibration::err(), DualCoding::Lookout::findLocationFor(), GaitedFootstepMC::GaitedFootstepMC(), WorldStateSerializerBehavior::getClassDescription(), WMMonitorBehavior::getClassDescription(), WalkController::getClassDescription(), UPennWalkControllerBehavior::getClassDescription(), SegCam::getClassDescription(), RegionCam::getClassDescription(), RawCam::getClassDescription(), HeadController::getClassDescription(), GamepadController::getClassDescription(), EStopController::getClassDescription(), DepthCam::getClassDescription(), ArmController::getClassDescription(), CameraBehavior::getNextName(), MotionManager::getOutputs(), WorldStateSerializerBehavior::getPort(), WMMonitorBehavior::getPort(), Aibo3DControllerBehavior::getPort(), SoundManager::getRemainTime(), RawCam::getSourceLayer(), Kinematics::init(), ConfigurationEditor::init(), CameraBehavior::initIndex(), PitchDetector::is_pitch(), DualCoding::MapBuilder::isLineVisible(), DualCoding::MapBuilder::isPointVisible(), SoundManager::loadBuffer(), CameraData::loadCameraData(), SegmentedColorGenerator::loadColorInfo(), WaypointEngine::loadFile(), SoundManager::loadFile(), PostureEngine::loadFile(), MotionSequenceEngine::loadFile(), KoduConfig::loadFile(), SegmentedColorGenerator::loadThresholdMap(), CameraBehavior::openNextFile(), RawCam::openPacket(), DepthCam::openPacket(), SoundManager::playFile(), PostureEditor::PostureEditor(), WalkCalibration::processEvent(), projectShapeToCamera(), Kinematics::projectToGround(), WorldState::read(), WaypointWalkControl::refresh(), PostureEditor::refresh(), ControlBase::refresh(), SoundManager::release(), SoundManager::releaseFile(), HelpControl::report(), CameraData::saveCameraData(), WalkCalibration::saveData(), WaypointEngine::saveFile(), PostureEngine::saveFile(), MotionSequenceEngine::saveFile(), LoadCalibration::selectedFile(), CameraStreamBehavior::sendSensors(), Controller::setConfig(), ControlBase::setHilights(), FileBrowserControl::setRoot(), EmergencyStopMC::setStopped(), FlashIPAddrBehavior::setupSequence(), SegCam::setupServer(), RegionCam::setupServer(), RawCam::setupServer(), DepthCam::setupServer(), SoundManager::speak(), GamepadController::start(), SoundManager::stopPlay(), WalkCalibration::takeInput(), SaveWalkControl::takeInput(), SavePostureControl::takeInput(), ControlBase::takeInput(), BallDetectionGenerator::testSendEvent(), WaypointWalkControl::WaypointWalkControl(), RawCam::writeColor(), DepthCam::writeDepth(), RegionCam::writeRegions(), SegCam::writeRLE(), SegCam::writeSeg(), RawCam::writeSingleChannel(), XWalkEdit::XWalkEdit(), and XWalkMC::XWalkMC().


Tekkotsu v5.1CVS
Generated Mon May 9 04:58:54 2016 by Doxygen 1.6.3