SEAdvanceTime.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5#include "cdm/engine/SEAction.h"
6
7class CDM_DECL SEAdvanceTime : public SEAction
8{
9 friend class PBAction;//friend the serialization class
10public:
11
12 SEAdvanceTime(Logger* logger=nullptr);
13 virtual ~SEAdvanceTime();
14
15 static constexpr char const* Name = "Advance Time";
16 std::string GetName() const override { return Name; }
17
18 void Clear() override; //clear memory
19
20 bool IsValid() const override;
21
22 virtual bool HasTime() const;
23 virtual SEScalarTime& GetTime();
24 virtual double GetTime(const TimeUnit& unit) const;
25
26 const SEScalar* GetScalar(const std::string& name) override;
27
28protected:
29
31};
Definition: Logger.h:71
Definition: PBActions.h:15
Definition: SEAction.h:14
virtual const SEScalar * GetScalar(const std::string &name)=0
virtual bool IsValid() const
Definition: SEAction.h:35
virtual void Clear()
Definition: SEAction.cpp:21
Definition: SEAdvanceTime.h:8
SEScalarTime * m_Time
Definition: SEAdvanceTime.h:30
std::string GetName() const override
Definition: SEAdvanceTime.h:16
Definition: SEScalar.h:19
Definition: SEScalarTime.h:28
Definition: SEScalarTime.h:8

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.