LRAUV  revA
SendDataComponent.h
Go to the documentation of this file.
1 
9 #ifndef SENDDATACOMPONENT_H_
10 #define SENDDATACOMPONENT_H_
11 
12 #include "component/Behavior.h"
13 #include "logger/LogWriter.h"
14 #include "utils/FlexArray.h"
15 
16 class DataReader;
17 class MissionItem;
18 class MissionNode;
19 class Module;
20 
27 {
28 public:
29  static SendDataComponent* Instance( MissionNode* node, const Str& itemName, MissionItem* parent, const Module* module, Logger& logger );
30  virtual ~SendDataComponent();
31  virtual void initialize();
32  virtual void run();
33  virtual bool runIfUnsatisfied();
34  virtual void uninitialize();
35 
36 protected:
37 
39  SendDataComponent( const Str& name );
40 
43 
44 private:
45  // Note that the copy constructor below is private and not given a body.
46  // Any attempt to call it will return a compiler error.
47  SendDataComponent( const SendDataComponent& old ); // disallow copy constructor
48 };
49 
50 #endif /* SENDDATACOMPONENT_H_ */
Client-side interface for injecting log data into the log queue.
Definition: Logger.h:30
LogWriter::ServiceType serviceType_
Definition: SendDataComponent.h:42
Wraps a Behavior or Aggregate with mission-specific settings pertaining to that item.
Definition: MissionItem.h:31
virtual void initialize()
Provide a space for initialization before being run.
Definition: SendDataComponent.cpp:106
Contains the LogWriter class definition.
virtual void uninitialize()
Provide a space for uninitialization.
Definition: SendDataComponent.cpp:128
A DataAccessor that reads values from the Slate Contains a default dataValue that must not be NULL...
Definition: DataReader.h:30
FlexArray< DataReader * > dataReaders_
Definition: SendDataComponent.h:41
Behavior is the abstract base class for components that implement mission behaviors and commands...
Definition: Behavior.h:32
Contains the FlexArrayBase and FlexArray class declarations.
ServiceType
Definition: LogWriter.h:29
Contains the Behavior class definition.
virtual bool runIfUnsatisfied()
Combined run and test Called by mission element: behaviorDone_.
Definition: SendDataComponent.cpp:122
Module is the abstract base class for a collection of Component objects that can be contained in a lo...
Definition: Module.h:45
Wraps a TiXmlNode.
Definition: MissionNode.h:20
Replacement for standard template class string.
Definition: Str.h:12
virtual void run()
The actual "payload" of the component.
Definition: SendDataComponent.cpp:111
static SendDataComponent * Instance(MissionNode *node, const Str &itemName, MissionItem *parent, const Module *module, Logger &logger)
Definition: SendDataComponent.cpp:18
Behavior that is embedded in scripted code within a mission file.
Definition: SendDataComponent.h:26
SendDataComponent(const Str &name)
Protected constructor.
Definition: SendDataComponent.cpp:133
virtual ~SendDataComponent()
Definition: SendDataComponent.cpp:101