PLaSK library
Loading...
Searching...
No Matches
data.cpp
Go to the documentation of this file.
1
/*
2
* This file is part of PLaSK (https://plask.app) by Photonics Group at TUL
3
* Copyright (c) 2022 Lodz University of Technology
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, version 3.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*/
14
#include "
data.hpp
"
15
16
namespace
plask
{
17
18
template
<>
DataLog<std::string, std::string>
&
19
DataLog<std::string, std::string>::operator()
(
const
std::string& arg,
const
std::string& val,
int
counter) {
20
writelog
(
LOG_DATA
,
"{}: {}: {}={} {}={} [{}]"
,
21
global_prefix, chart_name, axis_arg_name,
str
(arg), axis_val_name,
str
(val), counter+1);
22
return
*
this
;
23
}
24
25
template
<>
DataLog<std::string, std::string>
&
26
DataLog<std::string, std::string>::operator()
(
const
std::string& arg,
const
std::string& val) {
27
writelog
(
LOG_DATA
,
"{}: {}: {}={} {}={}"
,
28
global_prefix, chart_name, axis_arg_name,
str
(arg), axis_val_name,
str
(val));
29
return
*
this
;
30
}
31
32
}
plask
log
data.cpp
Generated by
1.9.8