Transducer creator and handler class.
More...
#include <transducer-handler.h>
|
typedef ::std::map< ::std::string, Transducer * > | TransducerMap |
|
typedef TransducerMap::iterator | TMIter |
|
typedef TransducerMap::reverse_iterator | TMRIter |
|
typedef TransducerMap::const_iterator | TMCIter |
|
typedef TransducerMap::const_reverse_iterator | TMCRIter |
|
Transducer creator and handler class.
woss::TransducerHandler class imports and saves woss::Transducer. It provides access to them via string name.
◆ TransducerMap
◆ TransducerHandler() [1/3]
TransducerHandler::TransducerHandler |
( |
| ) |
|
◆ TransducerHandler() [2/3]
◆ TransducerHandler() [3/3]
TransducerHandler::TransducerHandler |
( |
TransducerMap & |
transduc_map | ) |
|
◆ begin()
TransducerHandler::TMCIter woss::TransducerHandler::begin |
( |
| ) |
const |
|
inline |
Returns a const iterator to the beginning of the tranducer map
- Returns
- const iterator
References transducer_map.
◆ clear()
◆ empty()
bool woss::TransducerHandler::empty |
( |
| ) |
const |
|
inline |
Checks if the instance has any stored values
- Returns
- true if condition applies, false otherwise
References transducer_map.
◆ end()
TransducerHandler::TMCIter woss::TransducerHandler::end |
( |
| ) |
const |
|
inline |
Returns a const iterator to the end of the tranducer map
- Returns
- const iterator
References transducer_map.
◆ eraseValue()
Erases and deletes the pointer to a woss::Transducer for given string
- Parameters
-
name | const reference to string |
- Returns
- reference to *this
References transducer_map.
◆ getValue()
const Transducer *const TransducerHandler::getValue |
( |
const ::std::string & |
name | ) |
const |
◆ importValueAscii()
bool TransducerHandler::importValueAscii |
( |
const ::std::string & |
type_name, |
|
|
const ::std::string & |
file_name |
|
) |
| |
|
virtual |
◆ importValueBinary()
bool TransducerHandler::importValueBinary |
( |
const ::std::string & |
type_name, |
|
|
const ::std::string & |
file_name |
|
) |
| |
|
virtual |
◆ insertValue()
bool TransducerHandler::insertValue |
( |
const ::std::string & |
name, |
|
|
Transducer *const |
transducer |
|
) |
| |
Inserts and doesn't replace if another pointer to a woss::Transducer is found for given key; in this case the given pointer is deleted.
- Parameters
-
- Returns
- true if inserted, false otherwise
References transducer_map.
◆ operator=()
◆ rbegin()
TransducerHandler::TMCRIter woss::TransducerHandler::rbegin |
( |
| ) |
const |
|
inline |
Returns a const reverse iterator to the reverse beginning of the tranducer map
- Returns
- const reverse iterator
References transducer_map.
◆ rend()
TransducerHandler::TMCRIter woss::TransducerHandler::rend |
( |
| ) |
const |
|
inline |
Returns a const reverse iterator to the reverse end of the tranducer map
- Returns
- const reverse iterator
References transducer_map.
◆ replaceValue()
Replaces a pointer to a woss::Transducer for given key. The old value is deleted
- Parameters
-
- Returns
- true if inserted, false otherwise
References transducer_map.
◆ setDebug()
Sets debug flag for all instances
- Parameters
-
References debug.
◆ size()
int woss::TransducerHandler::size |
( |
| ) |
const |
|
inline |
Returns the number of pointers stored
- Returns
- number of pointers stored
References transducer_map.
◆ writeValueAscii()
bool TransducerHandler::writeValueAscii |
( |
const ::std::string & |
type_name, |
|
|
const ::std::string & |
file_name |
|
) |
| |
|
virtual |
Writes a woss::Transducer to the given file
- Parameters
-
type_name | transducer type name |
file_name | file path |
- Returns
- true if method was successful, false otherwise
References transducer_map.
◆ writeValueBinary()
bool TransducerHandler::writeValueBinary |
( |
const ::std::string & |
type_name, |
|
|
const ::std::string & |
file_name |
|
) |
| |
|
virtual |
Writes a woss::Transducer to the given binary file
- Parameters
-
type_name | transducer type name |
file_name | file path |
- Returns
- true if method was successful, false otherwise
References transducer_map.
◆ debug
bool woss::TransducerHandler::debug |
|
protected |
◆ transducer_map
beam pattern map
Referenced by begin(), clear(), empty(), end(), eraseValue(), getValue(), importValueAscii(), importValueBinary(), insertValue(), operator=(), rbegin(), rend(), replaceValue(), size(), TransducerHandler(), TransducerHandler(), TransducerHandler(), writeValueAscii(), and writeValueBinary().
◆ TRANSDUCER_NOT_VALID
const ::std::string TransducerHandler::TRANSDUCER_NOT_VALID = "TRANSDUCER_NOT_VALID" |
|
staticprotected |
The documentation for this class was generated from the following files: