|
Pyrogenesis
13997
|
Class to test a single component. More...
#include <ComponentTest.h>
Public Member Functions | |
| ComponentTestHelper () | |
| ScriptInterface & | GetScriptInterface () |
| CSimContext & | GetSimContext () |
| template<typename T > | |
| T * | Add (EComponentTypeId cid, const std::string &xml, entity_id_t ent=10) |
| Call this once to initialise the test helper with a component. More... | |
| void | AddMock (entity_id_t ent, EInterfaceId iid, IComponent &component) |
| void | HandleMessage (IComponent *cmp, const CMessage &msg, bool global) |
| void | Roundtrip (bool verbose=false) |
| Checks that the object roundtrips through its serialize/deserialize functions correctly. More... | |
Private Attributes | |
| CSimContext | m_Context |
| CComponentManager | m_ComponentManager |
| CParamNode | m_Param |
| IComponent * | m_Cmp |
| EComponentTypeId | m_Cid |
Class to test a single component.
Definition at line 46 of file ComponentTest.h.
|
inline |
Definition at line 55 of file ComponentTest.h.
|
inline |
Call this once to initialise the test helper with a component.
Definition at line 75 of file ComponentTest.h.
|
inline |
Definition at line 97 of file ComponentTest.h.
|
inline |
Definition at line 61 of file ComponentTest.h.
|
inline |
Definition at line 66 of file ComponentTest.h.
|
inline |
Definition at line 112 of file ComponentTest.h.
|
inline |
Checks that the object roundtrips through its serialize/deserialize functions correctly.
Computes the debug output, hash, and binary serialization; then deserializes into a new system and checks the serialization outputs are unchanged.
Definition at line 122 of file ComponentTest.h.
|
private |
Definition at line 52 of file ComponentTest.h.
|
private |
Definition at line 51 of file ComponentTest.h.
|
private |
Definition at line 49 of file ComponentTest.h.
|
private |
Definition at line 48 of file ComponentTest.h.
|
private |
Definition at line 50 of file ComponentTest.h.
1.8.5