Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
TeRKDriver::TeRKProperties Class Reference#include <TeRKDriver.h>
Inheritance diagram for TeRKDriver::TeRKProperties:
![]() Detailed DescriptionGrafts a Ice::Properties interface on a plist::Dictionary so we can use the Tekkotsu configuration system to control ICE.The constructor assigns various default values to defaults - these will be used unless a value is found in the plist::Dictionary storage. We keep these values separate because they shouldn't be written to persistent storage unless explicitly set. (Default values may change in the future, could break things if the defaults were written to file... most of these values are not really configurable by end user) Definition at line 150 of file TeRKDriver.h.
Member Typedef Documentation
forwarding typedef for good form
Reimplemented from DictionaryBase. Definition at line 153 of file TeRKDriver.h. forwarding typedef for good form
Reimplemented from DictionaryBase. Definition at line 154 of file TeRKDriver.h.
Constructor & Destructor Documentation
constructor, initialize defaults from defaultValues (C++0x will make this much more elegant!)
Definition at line 157 of file TeRKDriver.h. Referenced by clone().
Member Function Documentation
returns value associated with key, or empty string if not found
Definition at line 168 of file TeRKDriver.h.
returns value associated with key, or def if not found
Definition at line 286 of file TeRKDriver.cc. Referenced by getProperty().
returns value associated with key, or def if not found
Definition at line 294 of file TeRKDriver.cc. Referenced by getPropertyAsInt().
returns a sub-map, selecting keys which match the specified prefix
Definition at line 302 of file TeRKDriver.cc.
returns the same sequence it is passed (doesn't handle parsing command line options, we're not using that interface)
Definition at line 182 of file TeRKDriver.h.
returns the same sequence it is passed (doesn't handle parsing command line options, we're not using that interface)
Definition at line 184 of file TeRKDriver.h.
tries to load the specified file name (assumes plist format, not the ICE format!)
Definition at line 315 of file TeRKDriver.cc.
Member Data Documentation
These provide the TeRK configuration parameters for ICE communication, unless overridden by a setting in the class itself (see class notes). These may be changed from the initial defaultValues settings if a corresponding TeRKDriver setting (e.g. port) is modified. This is to avoid user confusion with having settings appear twice (once in the more human-readable driver settings, and again in this dictionary.) So settings stored in TeRKProperties itself is reserved for explicit overrides from the user Definition at line 165 of file TeRKDriver.h. Referenced by getPropertiesForPrefix(), getPropertyAsIntWithDefault(), and getPropertyWithDefault().
Definition at line 192 of file TeRKDriver.h.
Initial value: { make_pair( "Ice.Package.peer", "edu.cmu.ri.mrpl" ), make_pair( "Ice.Package.TeRK", "edu.cmu.ri.mrpl" ), make_pair( "Ice.Default.Package", "edu.cmu.ri.mrpl" ), make_pair( "TerkClient.Client.Endpoints", "tcp" ), make_pair( "Ice.ACM.Client", "0" ), make_pair( "Ice.ACM.Server", "0" ), make_pair( "Ice.Warn.Connections", "1" ), make_pair( "Ice.Logger.Timestamp", "1" ), make_pair( "Ice.ThreadPool.Client.Size", "5" ), make_pair( "Ice.ThreadPool.Client.SizeMax", "20" ), make_pair( "Ice.ThreadPool.Server.Size", "5" ), make_pair( "Ice.ThreadPool.Server.SizeMax", "20" ), make_pair( "TeRK.direct-connect.protocol", "tcp" ), make_pair( "TeRK.direct-connect.port", "10101" ), }
Definition at line 193 of file TeRKDriver.h.
The documentation for this class was generated from the following files: |
Tekkotsu Hardware Abstraction Layer 4.0 |
Generated Thu Nov 22 01:01:25 2007 by Doxygen 1.5.4 |