FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
firefront/src/EventCommand.cpp at master · OroraTech/firefront · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
OroraTech
/
firefront
Public
forked from
forefireAPI/forefire
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
firefront
/
src
/
EventCommand.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
47 lines (32 loc) · 1.13 KB
Breadcrumbs
firefront
/
src
/
EventCommand.cpp
Copy path
File metadata and controls
47 lines (32 loc) · 1.13 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
*
* @file EventCommand.cpp
* @brief A class that defines hos to send a specific command to the interpreter at a scheduled time (an time Atom that can be schedueled)
* @copyright Copyright (C) 2025 ForeFire, Fire Team, SPE, CNRS/Universita di Corsica.
* @license This program is free software; See LICENSE file for details. (See LICENSE file).
* @author Jean‑Baptiste Filippi — 2025
*/
#
include
"
EventCommand.h
"
#
include
"
Command.h
"
#
include
"
include/Futils.h
"
using
namespace
std
;
namespace
libforefire
{
EventCommand::EventCommand
(string scommand,
double
schedueledTime) : ForeFireAtom(schedueledTime) {
schedueledCommand = scommand;
};
EventCommand::~EventCommand
() {};
/*
making the 'update()', 'timeAdvance()' and 'accept()'
* virtual functions of 'ForeFireAtom' not virtual
*/
void
EventCommand::update
(){
Command::ExecuteCommand
(schedueledCommand);
}
void
EventCommand::timeAdvance
(){
setUpdateTime
(numeric_limits<
double
>::
infinity
());
}
void
EventCommand::input
(){};
void
EventCommand::output
(){};
string
EventCommand::toString
(){
ostringstream oss;
oss<<schedueledCommand<<
"
@
"
<<
getTime
();
return
oss.
str
();
}
};
Back
|
FazBrowse Home
|
New Git URL