Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
Power System Simulation and Optimization
DPsim
DPsim
Commits
86ba153e
Commit
86ba153e
authored
Oct 01, 2018
by
Markus Mirz
Browse files
remove constructor from data logger
parent
10bfdbde
Changes
2
Hide whitespace changes
Inline
Side-by-side
Include/dpsim/DataLogger.h
View file @
86ba153e
...
@@ -38,7 +38,6 @@ namespace DPsim {
...
@@ -38,7 +38,6 @@ namespace DPsim {
std
::
ofstream
mLogFile
;
std
::
ofstream
mLogFile
;
Bool
mEnabled
;
Bool
mEnabled
;
std
::
map
<
String
,
CPS
::
AttributeBase
::
Ptr
>
mAttributes
;
std
::
map
<
String
,
CPS
::
AttributeBase
::
Ptr
>
mAttributes
;
void
logDataLine
(
Real
time
,
Real
data
);
void
logDataLine
(
Real
time
,
Real
data
);
...
@@ -48,7 +47,6 @@ namespace DPsim {
...
@@ -48,7 +47,6 @@ namespace DPsim {
public:
public:
using
Ptr
=
std
::
shared_ptr
<
DataLogger
>
;
using
Ptr
=
std
::
shared_ptr
<
DataLogger
>
;
DataLogger
(
Bool
enabled
=
true
);
DataLogger
(
String
name
,
Bool
enabled
=
true
);
DataLogger
(
String
name
,
Bool
enabled
=
true
);
~
DataLogger
();
~
DataLogger
();
...
...
Source/DataLogger.cpp
View file @
86ba153e
...
@@ -27,12 +27,6 @@ namespace fs = std::experimental::filesystem;
...
@@ -27,12 +27,6 @@ namespace fs = std::experimental::filesystem;
using
namespace
DPsim
;
using
namespace
DPsim
;
DataLogger
::
DataLogger
(
Bool
enabled
)
:
mLogFile
(),
mEnabled
(
enabled
)
{
mLogFile
.
setstate
(
std
::
ios_base
::
badbit
);
}
DataLogger
::
DataLogger
(
String
name
,
Bool
enabled
)
:
DataLogger
::
DataLogger
(
String
name
,
Bool
enabled
)
:
mEnabled
(
enabled
)
{
mEnabled
(
enabled
)
{
if
(
!
mEnabled
)
if
(
!
mEnabled
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment