#include <InputMixer.h>
Inheritance diagram for gadget::InputMixer:

Public Types | |
| typedef InputPlaceHolder< InputMixer< ComposedParent, NewParent > > | MixedPlaceholderType |
| Type of the placeholder object that can be used to represent us. More... | |
Public Methods | |
| vpr::ReturnStatus | writeObject (vpr::ObjectWriter *writer) |
| vpr::ReturnStatus | readObject (vpr::ObjectReader *reader) |
| std::string | getBaseType () |
All devices should derive from a mixed type like below based on their types.
This allows us to implement any custom functions that are needed such as writeObject and readObject.
InputMixer<InputMixer<InputMixer<Input,Digital>,Analog>,Position>
Definition at line 105 of file InputMixer.h.
|
|||||
|
Type of the placeholder object that can be used to represent us.
Definition at line 113 of file InputMixer.h. |
|
||||||||||
|
Definition at line 115 of file InputMixer.h.
00116 {
00117 writer->beginTag(InputMixer<ComposedParent,NewParent>::getBaseType());
00118 ComposedParent::writeObject(writer);
00119 NewParent::writeObject(writer);
00120 writer->endTag();
00121 return(vpr::ReturnStatus::Succeed);
00122 }
|
|
||||||||||
|
Definition at line 124 of file InputMixer.h.
00125 {
00126 reader->beginTag(InputMixer<ComposedParent,NewParent>::getBaseType());
00127 ComposedParent::readObject(reader);
00128 NewParent::readObject(reader);
00129 reader->endTag();
00130 return(vpr::ReturnStatus::Succeed);
00131 }
|
|
|||||||||
|
Definition at line 133 of file InputMixer.h. Referenced by gadget::InputMixer< InputMixer< SimInput, Input >, Analog >::readObject, and gadget::InputMixer< InputMixer< SimInput, Input >, Analog >::writeObject.
00134 {
00135 return(ComposedParent::getBaseType() + NewParent::getBaseType()); //Input,Digital,Analog,Position, NEED THIS TOO
00136 }
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002