summaryrefslogtreecommitdiff
path: root/hscript/network.hh
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-07 19:07:36 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-07 19:07:36 -0500
commit92b2d500937a985275cee574ba10803b8e949356 (patch)
tree417a6a8ab50cf0933cf7eb13e2725b087a02b00d /hscript/network.hh
parent39c57ed759c3b3bb008b0d1b3661bd364712807d (diff)
downloadhorizon-92b2d500937a985275cee574ba10803b8e949356.tar.gz
horizon-92b2d500937a985275cee574ba10803b8e949356.tar.bz2
horizon-92b2d500937a985275cee574ba10803b8e949356.tar.xz
horizon-92b2d500937a985275cee574ba10803b8e949356.zip
hscript: Implement Network class
Diffstat (limited to 'hscript/network.hh')
-rw-r--r--hscript/network.hh10
1 files changed, 7 insertions, 3 deletions
diff --git a/hscript/network.hh b/hscript/network.hh
index e3e6595..7fc0504 100644
--- a/hscript/network.hh
+++ b/hscript/network.hh
@@ -14,14 +14,18 @@
#define __HSCRIPT_NETWORK_HH_
#include "key.hh"
+#include "util/output.hh"
namespace Horizon {
namespace Keys {
-class Network : public Key {
+class Network : public BooleanKey {
+private:
+ Network(bool _value) : BooleanKey(_value) {}
public:
- /*! Determine if networking is enabled. */
- bool enabled();
+ static Key *parseFromData(const std::string data, int lineno, int *errors,
+ int *warnings);
+ bool execute() override;
};
class NetAddress : public Key {