From dff7ba906571aec1139966a26704cbca245d89d7 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 8 Apr 2016 19:08:24 -0400 Subject: [PATCH] Extensions: Added ::debug --- src/Extensions.cpp | 6 ++++++ src/Extensions.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/Extensions.cpp b/src/Extensions.cpp index 90426a02..d822b124 100644 --- a/src/Extensions.cpp +++ b/src/Extensions.cpp @@ -46,6 +46,12 @@ void Extensions::initialize (const std::string& location) throw std::string ("Extension directory not readable: ") + d._data; } +//////////////////////////////////////////////////////////////////////////////// +void Extensions::debug () +{ + _debug = true; +} + //////////////////////////////////////////////////////////////////////////////// std::vector Extensions::all () const { diff --git a/src/Extensions.h b/src/Extensions.h index 305d3083..3204d858 100644 --- a/src/Extensions.h +++ b/src/Extensions.h @@ -35,12 +35,14 @@ class Extensions public: Extensions () = default; void initialize (const std::string&); + void debug (); std::vector all () const; int callExtension (const std::string&, const std::vector &, std::vector &) const; std::string dump () const; private: std::vector _scripts {}; + bool _debug {false}; }; #endif