plebble
convert.h
Go to the documentation of this file.
1
/*
2
-------------------------------------------------------------------------------
3
PLEBBLE
4
-------------------------------------------------------------------------------
5
Copyright (C) 2019-2020 KATLAS Technology. (http://katlastechnology.com)
6
Copyright (C) 2017-2020 Marcos Mayorga. (mm@mm-studios.com)
7
8
This file is part of our Plebble(R) Platform.
9
10
The code below cannot be copied, used for any purpose other than the one
11
agreed and/or distributed without the express permission of
12
KATLAS Technology.
13
-------------------------------------------------------------------------------
14
15
16
*/
17
18
#ifndef USGOV_47334c096bbab50a71f79cb22e1790fb59c211aff5c75577eb0464efe6bff764
19
#define USGOV_47334c096bbab50a71f79cb22e1790fb59c211aff5c75577eb0464efe6bff764
20
21
#include <
us/gov/crypto.h
>
22
23
namespace
us
{
namespace
gov {
24
namespace
io {
25
using namespace
std
;
26
27
template
<
typename
T>
28
T
convert
(
const
string
& s) {
29
T v;
30
istringstream is(s);
31
is >> v;
32
return
move(v);
33
}
34
35
template
<>
string
convert
(
const
string
& s);
36
template
<>
us::gov::crypto::ec::keys::priv_t
convert
(
const
string
& s);
37
template
<>
us::gov::crypto::ec::keys::pub_t
convert
(
const
string
& s);
38
}
39
}}
40
41
#endif
us
Definition:
daemon.h:22
us::gov::crypto::ec::keys::pub_t
Definition:
ec.h:44
us::gov::io::convert
T convert(const string &s)
Definition:
convert.h:28
crypto.h
us::gov::crypto::ec::keys::priv_t
Definition:
ec.h:77
std
Definition:
app.h:380
gov
io
convert.h
Generated by
1.8.20