git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Stargazer (#6)
[stg.git]
/
projects
/
stargazer
/
plugins
/
configuration
/
sgconfig
/
parser_tariffs.cpp
diff --git
a/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp
b/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp
index 3ed22113e12d6d0f89f1733087acbefddd536139..e22c78fe72b76a207555670d1350ff5ce78f895f 100644
(file)
--- a/
projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp
+++ b/
projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp
@@
-23,8
+23,8
@@
#include "stg/tariffs.h"
#include "stg/users.h"
#include "stg/tariffs.h"
#include "stg/users.h"
-#include "stg/optional.h"
+#include <optional>
#include <cstdio> // snprintf
#include <cstring>
#include <cstdio> // snprintf
#include <cstring>
@@
-57,7
+57,7
@@
std::string AOS2String(const A & array, size_t size, const F C::* field, F multi
}
template <typename T>
}
template <typename T>
-bool str2res(const std::string& source,
STG::O
ptional<T>& dest, T divisor)
+bool str2res(const std::string& source,
std::o
ptional<T>& dest, T divisor)
{
T value = 0;
if (str2x(source, value))
{
T value = 0;
if (str2x(source, value))
@@
-67,7
+67,7
@@
bool str2res(const std::string& source, STG::Optional<T>& dest, T divisor)
}
template <typename A, typename C, typename F>
}
template <typename A, typename C, typename F>
-bool String2AOS(const std::string & source, A & array, size_t size,
STG::O
ptional<F> C::* field, F divisor)
+bool String2AOS(const std::string & source, A & array, size_t size,
std::o
ptional<F> C::* field, F divisor)
{
size_t index = 0;
std::string::size_type from = 0;
{
size_t index = 0;
std::string::size_type from = 0;
@@
-314,7
+314,7
@@
int CHG_TARIFF::Start(void *, const char * el, const char ** attr)
void CHG_TARIFF::CreateAnswer()
{
void CHG_TARIFF::CreateAnswer()
{
- if (!td.tariffConf.name.
data
().empty())
+ if (!td.tariffConf.name.
value
().empty())
{
auto tariffData = td.get({});
if (m_tariffs.Chg(tariffData, &m_currAdmin) == 0)
{
auto tariffData = td.get({});
if (m_tariffs.Chg(tariffData, &m_currAdmin) == 0)