Subversion Repositories HomeAutomation

Rev

Rev 1322 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1322 Rev 1326
Line 7... Line 7...
7
 
7
 
8
#include "convert.h"
8
#include "convert.h"
9
 
9
 
10
namespace atom {
10
namespace atom {
11
namespace convert {
11
namespace convert {
-
 
12
 
-
 
13
string bool2string(const bool b)
-
 
14
{
-
 
15
    return b ? "true" : "false";
-
 
16
}
12
 
17
 
13
bool string2bool(const string s)
18
bool string2bool(const string s)
14
{
19
{
15
    return (s == "true" || s == "1" || s == "yes");
20
    return (s == "true" || s == "1" || s == "yes");
16
}
21
}