Cogs.Core
WindowComponent.cpp
1#include "WindowComponent.h"
2
3#include "Types.h"
4
5using namespace Cogs::Reflection;
6
7void Cogs::Core::EchoSounder::WindowComponent::registerType()
8{
9
10 Field fields[] = {
13 Field(Name("depthSpacing"), &WindowComponent::depthSpacing),
14 Field(Name("beamSpacing"), &WindowComponent::beamSpacing),
15 Field(Name("pathSpacing"), &WindowComponent::pathSpacing)
16 };
17
18 Method methods[] = {
19 Method(Name("initialize"), &WindowComponent::initialize),
20 Method(Name("update"), &WindowComponent::update),
21 };
22
23 DynamicComponent::registerDerivedType<WindowComponent>()
24 .setFields(fields)
25 .setMethods(methods);
26}
27
28
29void Cogs::Core::EchoSounder::WindowComponent::initialize(Context * /*context*/)
30{
31}
32
33void Cogs::Core::EchoSounder::WindowComponent::update()
34{
35 // Defined to get the changed flag (which other components use) cleared.
36}
Field definition describing a single data member of a data structure.
Definition: Field.h:68
Simple method definition.
Definition: Method.h:72
Contains reflection support.
Definition: Component.h:11
int64_t head
Most recent time (in ticks) of window.
int64_t tail
Least recent time (in ticks) of window.
Represents an unique name.
Definition: Name.h:70