MainFormBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Icinga Studio"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 800,569 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
- ~MainFormBase();
+ ~MainFormBase() override;
};
public:
ConnectFormBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Icinga Studio - Connect"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE );
- ~ConnectFormBase();
+ ~ConnectFormBase() override;
};
public:
AboutFormBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("About Icinga Studio"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE );
- ~AboutFormBase();
+ ~AboutFormBase() override;
};
class IcingaStudio final : public wxApp
{
public:
- virtual bool OnInit() override
+ bool OnInit() override
{
Application::InitializeBase();
public:
MainForm(wxWindow *parent, const Url::Ptr& url);
- virtual void OnQuitClicked(wxCommandEvent& event) override;
- virtual void OnAboutClicked(wxCommandEvent& event) override;
- virtual void OnTypeSelected(wxTreeEvent& event) override;
- virtual void OnObjectSelected(wxListEvent& event) override;
+ void OnQuitClicked(wxCommandEvent& event) override;
+ void OnAboutClicked(wxCommandEvent& event) override;
+ void OnTypeSelected(wxTreeEvent& event) override;
+ void OnObjectSelected(wxListEvent& event) override;
private:
ApiClient::Ptr m_ApiClient;
static boost::signals2::signal<void ()> OnReopenLogs;
- ~Application();
+ ~Application() override;
static void InitializeBase();
static void UninitializeBase();
static void DisplayInfoMessage(std::ostream& os, bool skipVersion = false);
protected:
- virtual void OnConfigLoaded() override;
- virtual void Stop(bool runtimeRemoved) override;
+ void OnConfigLoaded() override;
+ void Stop(bool runtimeRemoved) override;
void RunEventLoop();
virtual void OnShutdown();
- virtual void ValidateName(const String& value, const ValidationUtils& utils) override final;
+ void ValidateName(const String& value, const ValidationUtils& utils) final;
private:
static Application::Ptr m_Instance; /**< The application instance. */
Array();
Array(std::initializer_list<Value> init);
- ~Array();
+ ~Array() override;
Value Get(SizeType index) const;
void Set(SizeType index, const Value& value);
return result;
}
- virtual Object::Ptr Clone() const override;
+ Object::Ptr Clone() const override;
Array::Ptr Reverse() const;
void Sort();
- virtual String ToString() const override;
+ String ToString() const override;
- virtual Value GetFieldByName(const String& field, bool sandboxed, const DebugInfo& debugInfo) const override;
- virtual void SetFieldByName(const String& field, const Value& value, const DebugInfo& debugInfo) override;
+ Value GetFieldByName(const String& field, bool sandboxed, const DebugInfo& debugInfo) const override;
+ void SetFieldByName(const String& field, const Value& value, const DebugInfo& debugInfo) override;
private:
std::vector<Value> m_Data; /**< The data for the array. */
class ModAttrValidationUtils final : public ValidationUtils
{
public:
- virtual bool ValidateName(const String& type, const String& name) const override
+ bool ValidateName(const String& type, const String& name) const override
{
Type::Ptr ptype = Type::GetByName(type);
ConfigType *dtype = dynamic_cast<ConfigType *>(ptype.get());
void Deactivate(bool runtimeRemoved = false);
void SetAuthority(bool authority);
- virtual void Start(bool runtimeCreated = false) override;
- virtual void Stop(bool runtimeRemoved = false) override;
+ void Start(bool runtimeCreated = false) override;
+ void Stop(bool runtimeRemoved = false) override;
virtual void Pause();
virtual void Resume();
virtual void OnAllConfigLoaded();
virtual void OnStateLoaded();
- virtual Dictionary::Ptr GetSourceLocation() const override;
+ Dictionary::Ptr GetSourceLocation() const override;
template<typename T>
static intrusive_ptr<T> GetObject(const String& name)
String Format(const String& format) const;
- virtual double GetValue() const override;
- virtual String ToString() const override;
+ double GetValue() const override;
+ String ToString() const override;
static Object::Ptr GetPrototype();
Dictionary();
- ~Dictionary();
+ ~Dictionary() override;
Value Get(const String& key) const;
bool Get(const String& key, Value *result) const;
static Object::Ptr GetPrototype();
- virtual Object::Ptr Clone() const override;
+ Object::Ptr Clone() const override;
- virtual String ToString() const override;
+ String ToString() const override;
- virtual Value GetFieldByName(const String& field, bool sandboxed, const DebugInfo& debugInfo) const override;
- virtual void SetFieldByName(const String& field, const Value& value, const DebugInfo& debugInfo) override;
- virtual bool HasOwnField(const String& field) const override;
- virtual bool GetOwnField(const String& field, Value *result) const override;
+ Value GetFieldByName(const String& field, bool sandboxed, const DebugInfo& debugInfo) const override;
+ void SetFieldByName(const String& field, const Value& value, const DebugInfo& debugInfo) override;
+ bool HasOwnField(const String& field) const override;
+ bool GetOwnField(const String& field, Value *result) const override;
private:
std::map<String, Value> m_Data; /**< The data for the dictionary. */
class libcxx_type_info : public std::type_info
{
public:
- virtual ~libcxx_type_info();
+ ~libcxx_type_info() override;
virtual void noop1() const;
virtual void noop2() const;
public:
ScriptError(const String& message);
ScriptError(const String& message, const DebugInfo& di, bool incompleteExpr = false);
- ~ScriptError() throw();
+ ~ScriptError() throw() override;
- virtual const char *what(void) const throw() override final;
+ const char *what(void) const throw() final;
DebugInfo GetDebugInfo() const;
bool IsIncompleteExpression() const;
{
public:
ValidationError(const ConfigObject::Ptr& object, const std::vector<String>& attributePath, const String& message);
- ~ValidationError() throw();
+ ~ValidationError() throw() override;
- virtual const char *what(void) const throw() override final;
+ const char *what() const throw() override;
ConfigObject::Ptr GetObject() const;
std::vector<String> GetAttributePath() const;
class posix_error : virtual public std::exception, virtual public boost::exception {
public:
posix_error();
- virtual ~posix_error() throw();
+ ~posix_error() throw() override;
- virtual const char *what(void) const throw() override final;
+ const char *what(void) const throw() final;
private:
mutable char *m_Message;
static const size_t BlockSize = 512;
FIFO();
- ~FIFO();
+ ~FIFO() override;
- virtual size_t Peek(void *buffer, size_t count, bool allow_partial = false) override;
- virtual size_t Read(void *buffer, size_t count, bool allow_partial = false) override;
- virtual void Write(const void *buffer, size_t count) override;
- virtual void Close() override;
- virtual bool IsEof() const override;
- virtual bool SupportsWaiting() const override;
- virtual bool IsDataAvailable() const override;
+ size_t Peek(void *buffer, size_t count, bool allow_partial = false) override;
+ size_t Read(void *buffer, size_t count, bool allow_partial = false) override;
+ void Write(const void *buffer, size_t count) override;
+ void Close() override;
+ bool IsEof() const override;
+ bool SupportsWaiting() const override;
+ bool IsDataAvailable() const override;
size_t GetAvailableBytes() const;
static void StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
- virtual void Start(bool runtimeCreated) override;
+ void Start(bool runtimeCreated) override;
private:
void ReopenLogFile();
static Object::Ptr GetPrototype();
- virtual Object::Ptr Clone() const override;
+ Object::Ptr Clone() const override;
private:
Callback m_Callback;
static void SetConsoleLogSeverity(LogSeverity logSeverity);
static LogSeverity GetConsoleLogSeverity();
- virtual void ValidateSeverity(const String& value, const ValidationUtils& utils) override final;
+ void ValidateSeverity(const String& value, const ValidationUtils& utils) final;
protected:
- virtual void Start(bool runtimeCreated) override;
- virtual void Stop(bool runtimeRemoved) override;
+ void Start(bool runtimeCreated) override;
+ void Stop(bool runtimeRemoved) override;
private:
static boost::mutex m_Mutex;
NetworkStream(const Socket::Ptr& socket);
- virtual size_t Read(void *buffer, size_t count, bool allow_partial = false) override;
- virtual void Write(const void *buffer, size_t count) override;
+ size_t Read(void *buffer, size_t count, bool allow_partial = false) override;
+ void Write(const void *buffer, size_t count) override;
- virtual void Close() override;
+ void Close() override;
- virtual bool IsEof() const override;
+ bool IsEof() const override;
private:
Socket::Ptr m_Socket;
public:
ObjectType();
- virtual String GetName() const override;
- virtual Type::Ptr GetBaseType() const override;
- virtual int GetAttributes() const override;
- virtual int GetFieldId(const String& name) const override;
- virtual Field GetFieldInfo(int id) const override;
- virtual int GetFieldCount() const override;
+ String GetName() const override;
+ Type::Ptr GetBaseType() const override;
+ int GetAttributes() const override;
+ int GetFieldId(const String& name) const override;
+ Field GetFieldInfo(int id) const override;
+ int GetFieldCount() const override;
protected:
- virtual ObjectFactory GetFactory() const override;
+ ObjectFactory GetFactory() const override;
};
}
public:
PrimitiveType(const String& name, const String& base, const ObjectFactory& factory = ObjectFactory());
- virtual String GetName() const override;
- virtual Type::Ptr GetBaseType() const override;
- virtual int GetAttributes() const override;
- virtual int GetFieldId(const String& name) const override;
- virtual Field GetFieldInfo(int id) const override;
- virtual int GetFieldCount() const override;
+ String GetName() const override;
+ Type::Ptr GetBaseType() const override;
+ int GetAttributes() const override;
+ int GetFieldId(const String& name) const override;
+ Field GetFieldInfo(int id) const override;
+ int GetFieldCount() const override;
protected:
- virtual ObjectFactory GetFactory() const override;
+ ObjectFactory GetFactory() const override;
private:
String m_Name;
static const std::deque<Process::Ptr>::size_type MaxTasksPerThread = 512;
Process(const Arguments& arguments, const Dictionary::Ptr& extraEnvironment = nullptr);
- ~Process();
+ ~Process() override;
void SetTimeout(double timeout);
double GetTimeout() const;
Socket();
Socket(SOCKET fd);
- ~Socket();
+ ~Socket() override;
SOCKET GetFD() const;
class SocketEventEnginePoll final : public SocketEventEngine
{
public:
- virtual void Register(SocketEvents *se, Object *lifesupportObject);
- virtual void Unregister(SocketEvents *se);
- virtual void ChangeEvents(SocketEvents *se, int events);
+ void Register(SocketEvents *se, Object *lifesupportObject) override;
+ void Unregister(SocketEvents *se) override;
+ void ChangeEvents(SocketEvents *se, int events) override;
protected:
- virtual void InitializeThread(int tid);
- virtual void ThreadProc(int tid);
+ void InitializeThread(int tid) override;
+ void ThreadProc(int tid) override;
};
#ifdef __linux__
DECLARE_PTR_TYPEDEFS(StdioStream);
StdioStream(std::iostream *innerStream, bool ownsStream);
- ~StdioStream();
+ ~StdioStream() override;
- virtual size_t Read(void *buffer, size_t size, bool allow_partial = false) override;
- virtual void Write(const void *buffer, size_t size) override;
+ size_t Read(void *buffer, size_t size, bool allow_partial = false) override;
+ void Write(const void *buffer, size_t size) override;
- virtual void Close() override;
+ void Close() override;
- virtual bool IsDataAvailable() const override;
- virtual bool IsEof() const override;
+ bool IsDataAvailable() const override;
+ bool IsEof() const override;
private:
std::iostream *m_InnerStream;
StreamLogger();
- virtual void Stop(bool runtimeRemoved) override;
- ~StreamLogger();
+ void Stop(bool runtimeRemoved) override;
+ ~StreamLogger() override;
void BindStream(std::ostream *stream, bool ownsStream);
protected:
void ProcessLogEntry(const LogEntry& entry) final;
- void Flush(void) final;
+ void Flush() final;
private:
static boost::mutex m_Mutex;
static void StaticInitialize();
static void StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
- virtual void OnConfigLoaded() override;
- virtual void ValidateFacility(const String& value, const ValidationUtils& utils) override;
+ void OnConfigLoaded() override;
+ void ValidateFacility(const String& value, const ValidationUtils& utils) override;
protected:
static std::map<String, int> m_FacilityMap;
int m_Facility;
- virtual void ProcessLogEntry(const LogEntry& entry) override;
- virtual void Flush() override;
+ void ProcessLogEntry(const LogEntry& entry) override;
+ void Flush() override;
};
}
DECLARE_PTR_TYPEDEFS(Timer);
Timer();
- ~Timer();
+ ~Timer() override;
static void Uninitialize();
DECLARE_PTR_TYPEDEFS(TlsStream);
TlsStream(const Socket::Ptr& socket, const String& hostname, ConnectionRole role, const std::shared_ptr<SSL_CTX>& sslContext = MakeSSLContext());
- ~TlsStream();
+ ~TlsStream() override;
Socket::Ptr GetSocket() const;
void Handshake();
- virtual void Close() override;
- virtual void Shutdown() override;
+ void Close() override;
+ void Shutdown() override;
- virtual size_t Peek(void *buffer, size_t count, bool allow_partial = false) override;
- virtual size_t Read(void *buffer, size_t count, bool allow_partial = false) override;
- virtual void Write(const void *buffer, size_t count) override;
+ size_t Peek(void *buffer, size_t count, bool allow_partial = false) override;
+ size_t Read(void *buffer, size_t count, bool allow_partial = false) override;
+ void Write(const void *buffer, size_t count) override;
- virtual bool IsEof() const override;
+ bool IsEof() const override;
- virtual bool SupportsWaiting() const override;
- virtual bool IsDataAvailable() const override;
+ bool SupportsWaiting() const override;
+ bool IsDataAvailable() const override;
bool IsVerifyOK() const;
String GetVerifyError() const;
static int m_SSLIndex;
static bool m_SSLIndexInitialized;
- virtual void OnEvent(int revents) override;
+ void OnEvent(int revents) override;
void HandleError() const;
DECLARE_OBJECT(Type);
Type();
- ~Type();
+ ~Type() override;
- virtual String ToString() const override;
+ String ToString() const override;
virtual String GetName() const = 0;
virtual Type::Ptr GetBaseType() const = 0;
static Type::Ptr GetByName(const String& name);
static std::vector<Type::Ptr> GetAllTypes();
- virtual void SetField(int id, const Value& value, bool suppress_events = false, const Value& cookie = Empty) override;
- virtual Value GetField(int id) const override;
+ void SetField(int id, const Value& value, bool suppress_events = false, const Value& cookie = Empty) override;
+ Value GetField(int id) const override;
virtual std::vector<String> GetLoadDependencies() const;
public:
DECLARE_PTR_TYPEDEFS(Type);
- virtual String GetName() const override;
- virtual Type::Ptr GetBaseType() const override;
- virtual int GetAttributes() const override;
- virtual int GetFieldId(const String& name) const override;
- virtual Field GetFieldInfo(int id) const override;
- virtual int GetFieldCount() const override;
+ String GetName() const override;
+ Type::Ptr GetBaseType() const override;
+ int GetAttributes() const override;
+ int GetFieldId(const String& name) const override;
+ Field GetFieldInfo(int id) const override;
+ int GetFieldCount() const override;
static Object::Ptr GetPrototype();
protected:
- virtual ObjectFactory GetFactory() const override;
+ ObjectFactory GetFactory() const override;
};
template<typename T>
CheckerComponent();
- virtual void OnConfigLoaded() override;
- virtual void Start(bool runtimeCreated) override;
- virtual void Stop(bool runtimeRemoved) override;
+ void OnConfigLoaded() override;
+ void Start(bool runtimeCreated) override;
+ void Stop(bool runtimeRemoved) override;
static void StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
unsigned long GetIdleCheckables();
public:
DECLARE_PTR_TYPEDEFS(ApiSetupCommand);
- virtual String GetDescription() const override;
- virtual String GetShortDescription() const override;
- virtual int GetMaxArguments() const override;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
- virtual ImpersonationLevel GetImpersonationLevel() const override;
+ String GetDescription() const override;
+ String GetShortDescription() const override;
+ int GetMaxArguments() const override;
+ int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ ImpersonationLevel GetImpersonationLevel() const override;
};
}
public:
DECLARE_PTR_TYPEDEFS(CAListCommand);
- virtual String GetDescription() const override;
- virtual String GetShortDescription() const override;
- virtual void InitParameters(boost::program_options::options_description& visibleDesc,
+ String GetDescription() const override;
+ String GetShortDescription() const override;
+ void InitParameters(boost::program_options::options_description& visibleDesc,
boost::program_options::options_description& hiddenDesc) const override;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
private:
static void PrintRequest(const String& requestFile);
public:
DECLARE_PTR_TYPEDEFS(CASignCommand);
- virtual String GetDescription() const override;
- virtual String GetShortDescription() const override;
- virtual int GetMinArguments() const override;
- virtual ImpersonationLevel GetImpersonationLevel() const override;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ String GetDescription() const override;
+ String GetShortDescription() const override;
+ int GetMinArguments() const override;
+ ImpersonationLevel GetImpersonationLevel() const override;
+ int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
};
}
static void StaticInitialize();
- virtual String GetDescription() const override;
- virtual String GetShortDescription() const override;
- virtual ImpersonationLevel GetImpersonationLevel() const override;
- virtual void InitParameters(boost::program_options::options_description& visibleDesc,
+ String GetDescription() const override;
+ String GetShortDescription() const override;
+ ImpersonationLevel GetImpersonationLevel() const override;
+ void InitParameters(boost::program_options::options_description& visibleDesc,
boost::program_options::options_description& hiddenDesc) const override;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
static int RunScriptConsole(ScriptFrame& scriptFrame, const String& addr = String(),
const String& session = String(), const String& commandOnce = String(), const String& commandOnceFileName = String(),
public:
DECLARE_PTR_TYPEDEFS(DaemonCommand);
- virtual String GetDescription() const override;
- virtual String GetShortDescription() const override;
- virtual void InitParameters(boost::program_options::options_description& visibleDesc,
+ String GetDescription() const override;
+ String GetShortDescription() const override;
+ void InitParameters(boost::program_options::options_description& visibleDesc,
boost::program_options::options_description& hiddenDesc) const override;
- virtual std::vector<String> GetArgumentSuggestions(const String& argument, const String& word) const override;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ std::vector<String> GetArgumentSuggestions(const String& argument, const String& word) const override;
+ int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
};
}
public:
DECLARE_PTR_TYPEDEFS(FeatureDisableCommand);
- virtual String GetDescription() const override;
- virtual String GetShortDescription() const override;
- virtual int GetMinArguments() const override;
- virtual int GetMaxArguments() const override;
- virtual std::vector<String> GetPositionalSuggestions(const String& word) const override;
- virtual ImpersonationLevel GetImpersonationLevel() const override;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ String GetDescription() const override;
+ String GetShortDescription() const override;
+ int GetMinArguments() const override;
+ int GetMaxArguments() const override;
+ std::vector<String> GetPositionalSuggestions(const String& word) const override;
+ ImpersonationLevel GetImpersonationLevel() const override;
+ int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
};
public:
DECLARE_PTR_TYPEDEFS(FeatureEnableCommand);
- virtual String GetDescription() const override;
- virtual String GetShortDescription() const override;
- virtual int GetMinArguments() const override;
- virtual int GetMaxArguments() const override;
- virtual std::vector<String> GetPositionalSuggestions(const String& word) const override;
- virtual ImpersonationLevel GetImpersonationLevel() const override;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ String GetDescription() const override;
+ String GetShortDescription() const override;
+ int GetMinArguments() const override;
+ int GetMaxArguments() const override;
+ std::vector<String> GetPositionalSuggestions(const String& word) const override;
+ ImpersonationLevel GetImpersonationLevel() const override;
+ int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
};
}
public:
DECLARE_PTR_TYPEDEFS(FeatureListCommand);
- virtual String GetDescription() const override;
- virtual String GetShortDescription() const override;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ String GetDescription() const override;
+ String GetShortDescription() const override;
+ int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
};
}
public:
DECLARE_PTR_TYPEDEFS(NodeSetupCommand);
- virtual String GetDescription() const override;
- virtual String GetShortDescription() const override;
- virtual void InitParameters(boost::program_options::options_description& visibleDesc,
+ String GetDescription() const override;
+ String GetShortDescription() const override;
+ void InitParameters(boost::program_options::options_description& visibleDesc,
boost::program_options::options_description& hiddenDesc) const override;
- virtual std::vector<String> GetArgumentSuggestions(const String& argument, const String& word) const override;
- virtual ImpersonationLevel GetImpersonationLevel() const override;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ std::vector<String> GetArgumentSuggestions(const String& argument, const String& word) const override;
+ ImpersonationLevel GetImpersonationLevel() const override;
+ int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
private:
static int SetupMaster(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap);
public:
DECLARE_PTR_TYPEDEFS(NodeWizardCommand);
- virtual String GetDescription() const override;
- virtual String GetShortDescription() const override;
- virtual int GetMaxArguments() const override;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
- virtual ImpersonationLevel GetImpersonationLevel() const override;
- virtual void InitParameters(boost::program_options::options_description& visibleDesc,
+ String GetDescription() const override;
+ String GetShortDescription() const override;
+ int GetMaxArguments() const override;
+ int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ ImpersonationLevel GetImpersonationLevel() const override;
+ void InitParameters(boost::program_options::options_description& visibleDesc,
boost::program_options::options_description& hiddenDesc) const override;
private:
public:
DECLARE_PTR_TYPEDEFS(ObjectListCommand);
- virtual String GetDescription() const override;
- virtual String GetShortDescription() const override;
- virtual void InitParameters(boost::program_options::options_description& visibleDesc,
+ String GetDescription() const override;
+ String GetShortDescription() const override;
+ void InitParameters(boost::program_options::options_description& visibleDesc,
boost::program_options::options_description& hiddenDesc) const override;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
private:
static void PrintTypeCounts(std::ostream& fp, const std::map<String, int>& type_count);
public:
DECLARE_PTR_TYPEDEFS(PKINewCACommand);
- virtual String GetDescription() const override;
- virtual String GetShortDescription() const override;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ String GetDescription() const override;
+ String GetShortDescription() const override;
+ int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
};
public:
DECLARE_PTR_TYPEDEFS(PKINewCertCommand);
- virtual String GetDescription() const override;
- virtual String GetShortDescription() const override;
- virtual void InitParameters(boost::program_options::options_description& visibleDesc,
+ String GetDescription() const override;
+ String GetShortDescription() const override;
+ void InitParameters(boost::program_options::options_description& visibleDesc,
boost::program_options::options_description& hiddenDesc) const override;
- virtual std::vector<String> GetArgumentSuggestions(const String& argument, const String& word) const override;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ std::vector<String> GetArgumentSuggestions(const String& argument, const String& word) const override;
+ int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
};
public:
DECLARE_PTR_TYPEDEFS(PKIRequestCommand);
- virtual String GetDescription() const override;
- virtual String GetShortDescription() const override;
- virtual void InitParameters(boost::program_options::options_description& visibleDesc,
+ String GetDescription() const override;
+ String GetShortDescription() const override;
+ void InitParameters(boost::program_options::options_description& visibleDesc,
boost::program_options::options_description& hiddenDesc) const override;
- virtual std::vector<String> GetArgumentSuggestions(const String& argument, const String& word) const override;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ std::vector<String> GetArgumentSuggestions(const String& argument, const String& word) const override;
+ int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
};
public:
DECLARE_PTR_TYPEDEFS(PKISaveCertCommand);
- virtual String GetDescription() const override;
- virtual String GetShortDescription() const override;
- virtual void InitParameters(boost::program_options::options_description& visibleDesc,
+ String GetDescription() const override;
+ String GetShortDescription() const override;
+ void InitParameters(boost::program_options::options_description& visibleDesc,
boost::program_options::options_description& hiddenDesc) const override;
- virtual std::vector<String> GetArgumentSuggestions(const String& argument, const String& word) const override;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ std::vector<String> GetArgumentSuggestions(const String& argument, const String& word) const override;
+ int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
};
public:
DECLARE_PTR_TYPEDEFS(PKISignCSRCommand);
- virtual String GetDescription() const override;
- virtual String GetShortDescription() const override;
- virtual void InitParameters(boost::program_options::options_description& visibleDesc,
+ String GetDescription() const override;
+ String GetShortDescription() const override;
+ void InitParameters(boost::program_options::options_description& visibleDesc,
boost::program_options::options_description& hiddenDesc) const override;
- virtual std::vector<String> GetArgumentSuggestions(const String& argument, const String& word) const override;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ std::vector<String> GetArgumentSuggestions(const String& argument, const String& word) const override;
+ int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
};
public:
DECLARE_PTR_TYPEDEFS(PKITicketCommand);
- virtual String GetDescription() const override;
- virtual String GetShortDescription() const override;
- virtual void InitParameters(boost::program_options::options_description& visibleDesc,
+ String GetDescription() const override;
+ String GetShortDescription() const override;
+ void InitParameters(boost::program_options::options_description& visibleDesc,
boost::program_options::options_description& hiddenDesc) const override;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
};
public:
DECLARE_PTR_TYPEDEFS(TroubleshootCommand);
- virtual String GetDescription() const override;
- virtual String GetShortDescription() const override;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
- virtual void InitParameters(boost::program_options::options_description& visibleDesc,
+ String GetDescription() const override;
+ String GetShortDescription() const override;
+ int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ void InitParameters(boost::program_options::options_description& visibleDesc,
boost::program_options::options_description& hiddenDesc) const override;
private:
public:
DECLARE_PTR_TYPEDEFS(VariableGetCommand);
- virtual String GetDescription() const override;
- virtual String GetShortDescription() const override;
- virtual int GetMinArguments() const override;
+ String GetDescription() const override;
+ String GetShortDescription() const override;
+ int GetMinArguments() const override;
void InitParameters(boost::program_options::options_description& visibleDesc,
boost::program_options::options_description& hiddenDesc) const override;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
};
}
public:
DECLARE_PTR_TYPEDEFS(VariableListCommand);
- virtual String GetDescription() const override;
- virtual String GetShortDescription() const override;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ String GetDescription() const override;
+ String GetShortDescription() const override;
+ int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
private:
static void PrintVariable(std::ostream& fp, const String& message);
static void StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
protected:
- virtual void Start(bool runtimeCreated) override;
- virtual void Stop(bool runtimeRemoved) override;
+ void Start(bool runtimeCreated) override;
+ void Stop(bool runtimeRemoved) override;
private:
Timer::Ptr m_ReadTimer;
static void StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
- virtual void ValidateRotationMethod(const String& value, const ValidationUtils& utils) override;
+ void ValidateRotationMethod(const String& value, const ValidationUtils& utils) override;
protected:
- virtual void Start(bool runtimeCreated) override;
- virtual void Stop(bool runtimeRemoved) override;
+ void Start(bool runtimeCreated) override;
+ void Stop(bool runtimeRemoved) override;
private:
void WriteLine(const String& line);
static void StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
protected:
- virtual void Start(bool runtimeCreated) override;
- virtual void Stop(bool runtimeRemoved) override;
+ void Start(bool runtimeCreated) override;
+ void Stop(bool runtimeRemoved) override;
private:
#ifndef _WIN32
static void StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
protected:
- virtual void Start(bool runtimeCreated) override;
- virtual void Stop(bool runtimeRemoved) override;
+ void Start(bool runtimeCreated) override;
+ void Stop(bool runtimeRemoved) override;
private:
Timer::Ptr m_StatusTimer;
class DefaultValidationUtils final : public ValidationUtils
{
public:
- virtual bool ValidateName(const String& type, const String& name) const override
+ bool ValidateName(const String& type, const String& name) const override
{
ConfigItem::Ptr item = ConfigItem::GetByTypeAndName(Type::GetByName(type), name);
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override
{
return m_Expression->DoEvaluate(frame, dhint);
}
- virtual const DebugInfo& GetDebugInfo() const override
+ const DebugInfo& GetDebugInfo() const override
{
return m_Expression->GetDebugInfo();
}
}
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
Value m_Value;
{ }
protected:
- const DebugInfo& GetDebugInfo(void) const final;
+ const DebugInfo& GetDebugInfo() const final;
DebugInfo m_DebugInfo;
};
}
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
- virtual bool GetReference(ScriptFrame& frame, bool init_dict, Value *parent, String *index, DebugHint **dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ bool GetReference(ScriptFrame& frame, bool init_dict, Value *parent, String *index, DebugHint **dhint) const override;
private:
String m_Variable;
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class LogicalNegateExpression final : public UnaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class AddExpression final : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class SubtractExpression final : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class MultiplyExpression final : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class DivideExpression final : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class ModuloExpression final : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class XorExpression final : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class BinaryAndExpression final : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class BinaryOrExpression final : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class ShiftLeftExpression final : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class ShiftRightExpression final : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class EqualExpression final : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class NotEqualExpression final : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class LessThanExpression final : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class GreaterThanExpression final : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class LessThanOrEqualExpression final : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class GreaterThanOrEqualExpression final : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class InExpression final : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class NotInExpression final : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class LogicalAndExpression final : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class LogicalOrExpression final : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class FunctionCallExpression final : public DebuggableExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
public:
std::unique_ptr<Expression> m_FName;
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
std::vector<std::unique_ptr<Expression> > m_Expressions;
void MakeInline();
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
std::vector<std::unique_ptr<Expression> > m_Expressions;
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
CombinedSetOp m_Op;
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
std::unique_ptr<Expression> m_Condition;
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
std::unique_ptr<Expression> m_Condition;
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class BreakExpression final : public DebuggableExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class ContinueExpression final : public DebuggableExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class GetScopeExpression final : public Expression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
ScopeSpecifier m_ScopeSpec;
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
- virtual bool GetReference(ScriptFrame& frame, bool init_dict, Value *parent, String *index, DebugHint **dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ bool GetReference(ScriptFrame& frame, bool init_dict, Value *parent, String *index, DebugHint **dhint) const override;
friend void BindToScope(std::unique_ptr<Expression>& expr, ScopeSpecifier scopeSpec);
};
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
std::unique_ptr<Expression> m_Message;
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
std::unique_ptr<Expression> m_Name;
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class FunctionExpression final : public DebuggableExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
String m_Name;
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
String m_Type;
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
bool m_Abstract;
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
String m_FKVar;
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
enum IncludeType
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
String m_RelativeBase;
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class UsingExpression final : public DebuggableExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
std::unique_ptr<Expression> m_Name;
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
+ ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
std::unique_ptr<Expression> m_TryBody;
CommandDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
- virtual Dictionary::Ptr GetConfigFields() const override;
- virtual Dictionary::Ptr GetStatusFields() const override;
+ Dictionary::Ptr GetConfigFields() const override;
+ Dictionary::Ptr GetStatusFields() const override;
};
}
int GetQueryCount(RingBuffer::SizeType span);
virtual int GetPendingQueryCount() const = 0;
- virtual void ValidateFailoverTimeout(double value, const ValidationUtils& utils) override final;
- virtual void ValidateCategories(const Array::Ptr& value, const ValidationUtils& utils) override final;
+ void ValidateFailoverTimeout(double value, const ValidationUtils& utils) final;
+ void ValidateCategories(const Array::Ptr& value, const ValidationUtils& utils) final;
protected:
- virtual void OnConfigLoaded() override;
- virtual void Start(bool runtimeCreated) override;
- virtual void Stop(bool runtimeRemoved) override;
- virtual void Resume() override;
- virtual void Pause() override;
+ void OnConfigLoaded() override;
+ void Start(bool runtimeCreated) override;
+ void Stop(bool runtimeRemoved) override;
+ void Resume() override;
+ void Pause() override;
virtual void ExecuteQuery(const DbQuery& query) = 0;
virtual void ExecuteMultipleQueries(const std::vector<DbQuery>&) = 0;
static void StaticInitialize();
- virtual Dictionary::Ptr GetConfigFields() const override;
- virtual Dictionary::Ptr GetStatusFields() const override;
+ Dictionary::Ptr GetConfigFields() const override;
+ Dictionary::Ptr GetStatusFields() const override;
private:
static void UpdateConnectedStatus(const Endpoint::Ptr& endpoint);
HostDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
- virtual Dictionary::Ptr GetConfigFields() const override;
- virtual Dictionary::Ptr GetStatusFields() const override;
+ Dictionary::Ptr GetConfigFields() const override;
+ Dictionary::Ptr GetStatusFields() const override;
- virtual void OnConfigUpdateHeavy() override;
- virtual void OnConfigUpdateLight() override;
+ void OnConfigUpdateHeavy() override;
+ void OnConfigUpdateLight() override;
- virtual String CalculateConfigHash(const Dictionary::Ptr& configFields) const override;
+ String CalculateConfigHash(const Dictionary::Ptr& configFields) const override;
private:
void DoCommonConfigUpdate();
HostGroupDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
- virtual Dictionary::Ptr GetConfigFields() const override;
- virtual Dictionary::Ptr GetStatusFields() const override;
+ Dictionary::Ptr GetConfigFields() const override;
+ Dictionary::Ptr GetStatusFields() const override;
private:
static void MembersChangedHandler(const HostGroup::Ptr& hgfilter);
static void StaticInitialize();
- virtual Dictionary::Ptr GetConfigFields() const override;
- virtual Dictionary::Ptr GetStatusFields() const override;
+ Dictionary::Ptr GetConfigFields() const override;
+ Dictionary::Ptr GetStatusFields() const override;
- virtual void OnConfigUpdateHeavy() override;
- virtual void OnConfigUpdateLight() override;
+ void OnConfigUpdateHeavy() override;
+ void OnConfigUpdateLight() override;
- virtual String CalculateConfigHash(const Dictionary::Ptr& configFields) const override;
+ String CalculateConfigHash(const Dictionary::Ptr& configFields) const override;
private:
void DoCommonConfigUpdate();
ServiceGroupDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
- virtual Dictionary::Ptr GetConfigFields() const override;
- virtual Dictionary::Ptr GetStatusFields() const override;
+ Dictionary::Ptr GetConfigFields() const override;
+ Dictionary::Ptr GetStatusFields() const override;
};
}
TimePeriodDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
protected:
- virtual Dictionary::Ptr GetConfigFields() const override;
- virtual Dictionary::Ptr GetStatusFields() const override;
+ Dictionary::Ptr GetConfigFields() const override;
+ Dictionary::Ptr GetStatusFields() const override;
- virtual void OnConfigUpdateHeavy() override;
+ void OnConfigUpdateHeavy() override;
};
}
UserDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
protected:
- virtual Dictionary::Ptr GetConfigFields() const override;
- virtual Dictionary::Ptr GetStatusFields() const override;
+ Dictionary::Ptr GetConfigFields() const override;
+ Dictionary::Ptr GetStatusFields() const override;
- virtual void OnConfigUpdateHeavy() override;
+ void OnConfigUpdateHeavy() override;
- virtual String CalculateConfigHash(const Dictionary::Ptr& configFields) const override;
+ String CalculateConfigHash(const Dictionary::Ptr& configFields) const override;
};
}
UserGroupDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
- virtual Dictionary::Ptr GetConfigFields() const override;
- virtual Dictionary::Ptr GetStatusFields() const override;
+ Dictionary::Ptr GetConfigFields() const override;
+ Dictionary::Ptr GetStatusFields() const override;
};
}
ZoneDbObject(const intrusive_ptr<DbType>& type, const String& name1, const String& name2);
- virtual Dictionary::Ptr GetConfigFields() const override;
- virtual Dictionary::Ptr GetStatusFields() const override;
+ Dictionary::Ptr GetConfigFields() const override;
+ Dictionary::Ptr GetStatusFields() const override;
};
}
static void StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
- virtual int GetPendingQueryCount() const override;
+ int GetPendingQueryCount() const override;
protected:
- virtual void OnConfigLoaded() override;
- virtual void Resume() override;
- virtual void Pause() override;
-
- virtual void ActivateObject(const DbObject::Ptr& dbobj) override;
- virtual void DeactivateObject(const DbObject::Ptr& dbobj) override;
- virtual void ExecuteQuery(const DbQuery& query) override;
- virtual void ExecuteMultipleQueries(const std::vector<DbQuery>& queries) override;
- virtual void CleanUpExecuteQuery(const String& table, const String& time_key, double time_value) override;
- virtual void FillIDCache(const DbType::Ptr& type) override;
- virtual void NewTransaction() override;
+ void OnConfigLoaded() override;
+ void Resume() override;
+ void Pause() override;
+
+ void ActivateObject(const DbObject::Ptr& dbobj) override;
+ void DeactivateObject(const DbObject::Ptr& dbobj) override;
+ void ExecuteQuery(const DbQuery& query) override;
+ void ExecuteMultipleQueries(const std::vector<DbQuery>& queries) override;
+ void CleanUpExecuteQuery(const String& table, const String& time_key, double time_value) override;
+ void FillIDCache(const DbType::Ptr& type) override;
+ void NewTransaction() override;
private:
DbReference m_InstanceID;
static void StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
- virtual int GetPendingQueryCount() const override;
+ int GetPendingQueryCount() const override;
protected:
- virtual void OnConfigLoaded() override;
- virtual void Resume() override;
- virtual void Pause() override;
-
- virtual void ActivateObject(const DbObject::Ptr& dbobj) override;
- virtual void DeactivateObject(const DbObject::Ptr& dbobj) override;
- virtual void ExecuteQuery(const DbQuery& query) override;
- virtual void ExecuteMultipleQueries(const std::vector<DbQuery>& queries) override;
- virtual void CleanUpExecuteQuery(const String& table, const String& time_key, double time_value) override;
- virtual void FillIDCache(const DbType::Ptr& type) override;
- virtual void NewTransaction() override;
+ void OnConfigLoaded() override;
+ void Resume() override;
+ void Pause() override;
+
+ void ActivateObject(const DbObject::Ptr& dbobj) override;
+ void DeactivateObject(const DbObject::Ptr& dbobj) override;
+ void ExecuteQuery(const DbQuery& query) override;
+ void ExecuteMultipleQueries(const std::vector<DbQuery>& queries) override;
+ void CleanUpExecuteQuery(const String& table, const String& time_key, double time_value) override;
+ void FillIDCache(const DbType::Ptr& type) override;
+ void NewTransaction() override;
private:
DbReference m_InstanceID;
DECLARE_OBJECT(Demo);
DECLARE_OBJECTNAME(Demo);
- virtual void Start(bool runtimeCreated) override;
+ void Start(bool runtimeCreated) override;
static Value DemoMessageHandler(const MessageOrigin::Ptr& origin, const Dictionary::Ptr& params);
DECLARE_OBJECT(HelloApplication);
DECLARE_OBJECTNAME(HelloApplication);
- virtual int Main() override;
+ int Main() override;
};
}
void AcknowledgeProblem(const String& author, const String& comment, AcknowledgementType type, bool notify = true, bool persistent = false, double expiry = 0, const MessageOrigin::Ptr& origin = nullptr);
void ClearAcknowledgement(const MessageOrigin::Ptr& origin = nullptr);
- virtual int GetSeverity() const override;
+ int GetSeverity() const override;
/* Checks */
intrusive_ptr<CheckCommand> GetCheckCommand() const;
bool HasBeenChecked() const;
virtual bool IsStateOK(ServiceState state) = 0;
- double GetLastCheck(void) const final;
+ double GetLastCheck() const final;
virtual void SaveLastState(ServiceState state, double timestamp) = 0;
static boost::signals2::signal<void (const Checkable::Ptr&)> OnEventCommandExecuted;
/* Downtimes */
- int GetDowntimeDepth(void) const final;
+ int GetDowntimeDepth() const final;
void RemoveAllDowntimes();
void TriggerDowntimes();
void RemoveReverseDependency(const intrusive_ptr<Dependency>& dep);
std::vector<intrusive_ptr<Dependency> > GetReverseDependencies() const;
- virtual void ValidateCheckInterval(double value, const ValidationUtils& utils) override final;
- virtual void ValidateMaxCheckAttempts(int value, const ValidationUtils& utils) override final;
+ void ValidateCheckInterval(double value, const ValidationUtils& utils) final;
+ void ValidateMaxCheckAttempts(int value, const ValidationUtils& utils) final;
static void IncreasePendingChecks();
static void DecreasePendingChecks();
static Object::Ptr GetPrototype();
protected:
- virtual void Start(bool runtimeCreated) override;
- virtual void OnAllConfigLoaded() override;
+ void Start(bool runtimeCreated) override;
+ void OnAllConfigLoaded() override;
private:
mutable boost::mutex m_CheckableMutex;
//virtual Dictionary::Ptr Execute(const Object::Ptr& context) = 0;
- virtual void Validate(int types, const ValidationUtils& utils) override;
+ void Validate(int types, const ValidationUtils& utils) override;
};
}
static String GetCommentIDFromLegacyID(int id);
protected:
- virtual void OnAllConfigLoaded() override;
- virtual void Start(bool runtimeCreated) override;
- virtual void Stop(bool runtimeRemoved) override;
+ void OnAllConfigLoaded() override;
+ void Start(bool runtimeCreated) override;
+ void Stop(bool runtimeRemoved) override;
private:
ObjectImpl<Checkable>::Ptr m_Checkable;
public:
DECLARE_OBJECT(CustomVarObject);
- virtual void ValidateVars(const Dictionary::Ptr& value, const ValidationUtils& utils) override final;
+ void ValidateVars(const Dictionary::Ptr& value, const ValidationUtils& utils) final;
};
int FilterArrayToInt(const Array::Ptr& typeFilters, const std::map<String, int>& filterMap, int defaultValue);
bool IsAvailable(DependencyType dt) const;
- virtual void ValidateStates(const Array::Ptr& value, const ValidationUtils& utils) override;
+ void ValidateStates(const Array::Ptr& value, const ValidationUtils& utils) override;
static void EvaluateApplyRules(const intrusive_ptr<Host>& host);
static void EvaluateApplyRules(const intrusive_ptr<Service>& service);
protected:
- virtual void OnConfigLoaded() override;
- virtual void OnAllConfigLoaded() override;
- virtual void Stop(bool runtimeRemoved) override;
+ void OnConfigLoaded() override;
+ void OnAllConfigLoaded() override;
+ void Stop(bool runtimeRemoved) override;
private:
Checkable::Ptr m_Parent;
static String GetDowntimeIDFromLegacyID(int id);
protected:
- virtual void OnAllConfigLoaded() override;
- virtual void Start(bool runtimeCreated) override;
- virtual void Stop(bool runtimeRemoved) override;
+ void OnAllConfigLoaded() override;
+ void Start(bool runtimeCreated) override;
+ void Stop(bool runtimeRemoved) override;
- virtual void ValidateStartTime(const Timestamp& value, const ValidationUtils& utils) override;
- virtual void ValidateEndTime(const Timestamp& value, const ValidationUtils& utils) override;
+ void ValidateStartTime(const Timestamp& value, const ValidationUtils& utils) override;
+ void ValidateEndTime(const Timestamp& value, const ValidationUtils& utils) override;
private:
ObjectImpl<Checkable>::Ptr m_Checkable;
static HostState CalculateState(ServiceState state);
- virtual HostState GetState() const override;
- virtual HostState GetLastState() const override;
- virtual HostState GetLastHardState() const override;
- virtual int GetSeverity() const override;
+ HostState GetState() const override;
+ HostState GetLastState() const override;
+ HostState GetLastHardState() const override;
+ int GetSeverity() const override;
- virtual bool IsStateOK(ServiceState state) override;
- virtual void SaveLastState(ServiceState state, double timestamp) override;
+ bool IsStateOK(ServiceState state) override;
+ void SaveLastState(ServiceState state, double timestamp) override;
static HostState StateFromString(const String& state);
static String StateToString(HostState state);
static StateType StateTypeFromString(const String& state);
static String StateTypeToString(StateType state);
- virtual bool ResolveMacro(const String& macro, const CheckResult::Ptr& cr, Value *result) const override;
+ bool ResolveMacro(const String& macro, const CheckResult::Ptr& cr, Value *result) const override;
protected:
- virtual void Stop(bool runtimeRemoved) override;
+ void Stop(bool runtimeRemoved) override;
- virtual void OnAllConfigLoaded() override;
- virtual void CreateChildObjects(const Type::Ptr& childType) override;
+ void OnAllConfigLoaded() override;
+ void CreateChildObjects(const Type::Ptr& childType) override;
private:
mutable boost::mutex m_ServicesMutex;
static void StaticInitialize();
- virtual int Main() override;
+ int Main() override;
static void StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
String GetPidPath() const;
- virtual bool ResolveMacro(const String& macro, const CheckResult::Ptr& cr, Value *result) const override;
+ bool ResolveMacro(const String& macro, const CheckResult::Ptr& cr, Value *result) const override;
String GetNodeName() const;
- virtual void ValidateVars(const Dictionary::Ptr& value, const ValidationUtils& utils) override;
+ void ValidateVars(const Dictionary::Ptr& value, const ValidationUtils& utils) override;
private:
void DumpProgramState();
void DumpModifiedAttributes();
- virtual void OnShutdown() override;
+ void OnShutdown() override;
};
}
static boost::signals2::signal<void (const Notification::Ptr&, const MessageOrigin::Ptr&)> OnNextNotificationChanged;
- virtual void Validate(int types, const ValidationUtils& utils) override;
+ void Validate(int types, const ValidationUtils& utils) override;
- virtual void ValidateStates(const Array::Ptr& value, const ValidationUtils& utils) override;
- virtual void ValidateTypes(const Array::Ptr& value, const ValidationUtils& utils) override;
+ void ValidateStates(const Array::Ptr& value, const ValidationUtils& utils) override;
+ void ValidateTypes(const Array::Ptr& value, const ValidationUtils& utils) override;
static void EvaluateApplyRules(const intrusive_ptr<Host>& host);
static void EvaluateApplyRules(const intrusive_ptr<Service>& service);
static const std::map<String, int>& GetTypeFilterMap();
protected:
- virtual void OnConfigLoaded() override;
- virtual void OnAllConfigLoaded() override;
- virtual void Start(bool runtimeCreated) override;
- virtual void Stop(bool runtimeRemoved) override;
+ void OnConfigLoaded() override;
+ void OnAllConfigLoaded() override;
+ void Start(bool runtimeCreated) override;
+ void Stop(bool runtimeRemoved) override;
private:
ObjectImpl<Checkable>::Ptr m_Checkable;
static void EvaluateApplyRules(const intrusive_ptr<Host>& host);
static void EvaluateApplyRules(const intrusive_ptr<Service>& service);
- virtual void ValidateRanges(const Dictionary::Ptr& value, const ValidationUtils& utils) override;
+ void ValidateRanges(const Dictionary::Ptr& value, const ValidationUtils& utils) override;
protected:
- virtual void OnAllConfigLoaded() override;
- virtual void Start(bool runtimeCreated) override;
+ void OnAllConfigLoaded() override;
+ void Start(bool runtimeCreated) override;
private:
static void TimerProc();
static Service::Ptr GetByNamePair(const String& hostName, const String& serviceName);
- virtual Host::Ptr GetHost() const override;
- virtual int GetSeverity() const override;
+ Host::Ptr GetHost() const override;
+ int GetSeverity() const override;
- virtual bool ResolveMacro(const String& macro, const CheckResult::Ptr& cr, Value *result) const override;
+ bool ResolveMacro(const String& macro, const CheckResult::Ptr& cr, Value *result) const override;
- virtual bool IsStateOK(ServiceState state) override;
- virtual void SaveLastState(ServiceState state, double timestamp) override;
+ bool IsStateOK(ServiceState state) override;
+ void SaveLastState(ServiceState state, double timestamp) override;
static ServiceState StateFromString(const String& state);
static String StateToString(ServiceState state);
static void EvaluateApplyRules(const Host::Ptr& host);
protected:
- virtual void OnAllConfigLoaded() override;
- virtual void CreateChildObjects(const Type::Ptr& childType) override;
+ void OnAllConfigLoaded() override;
+ void CreateChildObjects(const Type::Ptr& childType) override;
private:
Host::Ptr m_Host;
DECLARE_OBJECT(TimePeriod);
DECLARE_OBJECTNAME(TimePeriod);
- virtual void Start(bool runtimeCreated) override;
+ void Start(bool runtimeCreated) override;
void UpdateRegion(double begin, double end, bool clearExisting);
- virtual bool GetIsInside() const override;
+ bool GetIsInside() const override;
bool IsInside(double ts) const;
double FindNextTransition(double begin);
- virtual void ValidateRanges(const Dictionary::Ptr& value, const ValidationUtils& utils) override;
+ void ValidateRanges(const Dictionary::Ptr& value, const ValidationUtils& utils) override;
private:
void AddSegment(double s, double end);
/* Notifications */
TimePeriod::Ptr GetPeriod() const;
- virtual void ValidateStates(const Array::Ptr& value, const ValidationUtils& utils) override;
- virtual void ValidateTypes(const Array::Ptr& value, const ValidationUtils& utils) override;
+ void ValidateStates(const Array::Ptr& value, const ValidationUtils& utils) override;
+ void ValidateTypes(const Array::Ptr& value, const ValidationUtils& utils) override;
protected:
- virtual void Stop(bool runtimeRemoved) override;
+ void Stop(bool runtimeRemoved) override;
- virtual void OnConfigLoaded() override;
- virtual void OnAllConfigLoaded() override;
+ void OnConfigLoaded() override;
+ void OnAllConfigLoaded() override;
private:
mutable boost::mutex m_UserMutex;
};
AndFilter();
- virtual bool Apply(const Table::Ptr& table, const Value& row) override;
+ bool Apply(const Table::Ptr& table, const Value& row) override;
};
}
AttributeFilter(const String& column, const String& op, const String& operand);
- virtual bool Apply(const Table::Ptr& table, const Value& row) override;
+ bool Apply(const Table::Ptr& table, const Value& row) override;
protected:
String m_Column;
AvgAggregator(const String& attr);
- virtual void Apply(const Table::Ptr& table, const Value& row, AggregatorState **state) override;
- virtual double GetResultAndFreeState(AggregatorState *state) const override;
+ void Apply(const Table::Ptr& table, const Value& row, AggregatorState **state) override;
+ double GetResultAndFreeState(AggregatorState *state) const override;
private:
String m_AvgAttr;
static void AddColumns(Table *table, const String& prefix = String(),
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
- virtual String GetName() const override;
- virtual String GetPrefix() const override;
+ String GetName() const override;
+ String GetPrefix() const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn) override;
+ void FetchRows(const AddRowFunction& addRowFn) override;
static Value NameAccessor(const Value& row);
static Value LineAccessor(const Value& row);
static void AddColumns(Table *table, const String& prefix = String(),
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
- virtual String GetName() const override;
- virtual String GetPrefix() const override;
+ String GetName() const override;
+ String GetPrefix() const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn) override;
+ void FetchRows(const AddRowFunction& addRowFn) override;
private:
static Object::Ptr HostAccessor(const Value& row, const Column::ObjectAccessor& parentObjectAccessor);
static void AddColumns(Table *table, const String& prefix = String(),
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
- virtual String GetName() const override;
- virtual String GetPrefix() const override;
+ String GetName() const override;
+ String GetPrefix() const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn) override;
+ void FetchRows(const AddRowFunction& addRowFn) override;
static Value NameAccessor(const Value& row);
static Value AliasAccessor(const Value& row);
static void AddColumns(Table *table, const String& prefix = String(),
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
- virtual String GetName() const override;
- virtual String GetPrefix() const override;
+ String GetName() const override;
+ String GetPrefix() const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn) override;
+ void FetchRows(const AddRowFunction& addRowFn) override;
static Value NameAccessor(const Value& row);
static Value AliasAccessor(const Value& row);
public:
DECLARE_PTR_TYPEDEFS(CountAggregator);
- virtual void Apply(const Table::Ptr& table, const Value& row, AggregatorState **) override;
- virtual double GetResultAndFreeState(AggregatorState *state) const override;
+ void Apply(const Table::Ptr& table, const Value& row, AggregatorState **) override;
+ double GetResultAndFreeState(AggregatorState *state) const override;
private:
static CountAggregatorState *EnsureState(AggregatorState **state);
static void AddColumns(Table *table, const String& prefix = String(),
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
- virtual String GetName() const override;
- virtual String GetPrefix() const override;
+ String GetName() const override;
+ String GetPrefix() const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn) override;
+ void FetchRows(const AddRowFunction& addRowFn) override;
private:
static Object::Ptr HostAccessor(const Value& row, const Column::ObjectAccessor& parentObjectAccessor);
static void AddColumns(Table *table, const String& prefix = String(),
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
- virtual String GetName() const override;
- virtual String GetPrefix() const override;
+ String GetName() const override;
+ String GetPrefix() const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn) override;
+ void FetchRows(const AddRowFunction& addRowFn) override;
static Value NameAccessor(const Value& row);
static Value IdentityAccessor(const Value& row);
static void AddColumns(Table *table, const String& prefix = String(),
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
- virtual String GetName() const override;
- virtual String GetPrefix() const override;
+ String GetName() const override;
+ String GetPrefix() const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn) override;
+ void FetchRows(const AddRowFunction& addRowFn) override;
static Value NameAccessor(const Value& row);
static Value AliasAccessor(const Value& row);
static void AddColumns(Table *table, const String& prefix = String(),
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
- virtual String GetName() const override;
- virtual String GetPrefix() const override;
+ String GetName() const override;
+ String GetPrefix() const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn) override;
+ void FetchRows(const AddRowFunction& addRowFn) override;
static Object::Ptr HostGroupAccessor(const Value& row, LivestatusGroupByType groupByType, const Object::Ptr& groupByObject);
InvAvgAggregator(const String& attr);
- virtual void Apply(const Table::Ptr& table, const Value& row, AggregatorState **state) override;
- virtual double GetResultAndFreeState(AggregatorState *state) const override;
+ void Apply(const Table::Ptr& table, const Value& row, AggregatorState **state) override;
+ double GetResultAndFreeState(AggregatorState *state) const override;
private:
String m_InvAvgAttr;
InvSumAggregator(const String& attr);
- virtual void Apply(const Table::Ptr& table, const Value& row, AggregatorState **state) override;
- virtual double GetResultAndFreeState(AggregatorState *state) const override;
+ void Apply(const Table::Ptr& table, const Value& row, AggregatorState **state) override;
+ double GetResultAndFreeState(AggregatorState *state) const override;
private:
String m_InvSumAttr;
static int GetClientsConnected();
static int GetConnections();
- virtual void ValidateSocketType(const String& value, const ValidationUtils& utils) override;
+ void ValidateSocketType(const String& value, const ValidationUtils& utils) override;
protected:
- virtual void Start(bool runtimeCreated) override;
- virtual void Stop(bool runtimeRemoved) override;
+ void Start(bool runtimeCreated) override;
+ void Stop(bool runtimeRemoved) override;
private:
void ServerThreadProc();
static void AddColumns(Table *table, const String& prefix = String(),
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
- virtual String GetName() const override;
- virtual String GetPrefix() const override;
+ String GetName() const override;
+ String GetPrefix() const override;
void UpdateLogEntries(const Dictionary::Ptr& log_entry_attrs, int line_count, int lineno, const AddRowFunction& addRowFn) override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn) override;
+ void FetchRows(const AddRowFunction& addRowFn) override;
static Object::Ptr HostAccessor(const Value& row, const Column::ObjectAccessor& parentObjectAccessor);
static Object::Ptr ServiceAccessor(const Value& row, const Column::ObjectAccessor& parentObjectAccessor);
MaxAggregator(const String& attr);
- virtual void Apply(const Table::Ptr& table, const Value& row, AggregatorState **state) override;
- virtual double GetResultAndFreeState(AggregatorState *state) const override;
+ void Apply(const Table::Ptr& table, const Value& row, AggregatorState **state) override;
+ double GetResultAndFreeState(AggregatorState *state) const override;
private:
String m_MaxAttr;
MinAggregator(const String& attr);
- virtual void Apply(const Table::Ptr& table, const Value& row, AggregatorState **state) override;
- virtual double GetResultAndFreeState(AggregatorState *state) const override;
+ void Apply(const Table::Ptr& table, const Value& row, AggregatorState **state) override;
+ double GetResultAndFreeState(AggregatorState *state) const override;
private:
String m_MinAttr;
NegateFilter(const Filter::Ptr& inner);
- virtual bool Apply(const Table::Ptr& table, const Value& row) override;
+ bool Apply(const Table::Ptr& table, const Value& row) override;
private:
Filter::Ptr m_Inner;
OrFilter();
- virtual bool Apply(const Table::Ptr& table, const Value& row) override;
+ bool Apply(const Table::Ptr& table, const Value& row) override;
};
}
static void AddColumns(Table *table, const String& prefix = String(),
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
- virtual String GetName() const override;
- virtual String GetPrefix() const override;
+ String GetName() const override;
+ String GetPrefix() const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn) override;
+ void FetchRows(const AddRowFunction& addRowFn) override;
static Value NameAccessor(const Value& row);
static Value AliasAccessor(const Value& row);
static void AddColumns(Table *table, const String& prefix = String(),
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
- virtual String GetName() const override;
- virtual String GetPrefix() const override;
+ String GetName() const override;
+ String GetPrefix() const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn) override;
+ void FetchRows(const AddRowFunction& addRowFn) override;
static Object::Ptr HostAccessor(const Value& row, const Column::ObjectAccessor& parentObjectAccessor);
static Object::Ptr ServiceGroupAccessor(const Value& row, LivestatusGroupByType groupByType, const Object::Ptr& groupByObject);
static void AddColumns(Table *table, const String& prefix = String(),
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
- virtual String GetName() const override;
- virtual String GetPrefix() const override;
+ String GetName() const override;
+ String GetPrefix() const override;
void UpdateLogEntries(const Dictionary::Ptr& log_entry_attrs, int line_count, int lineno, const AddRowFunction& addRowFn) override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn) override;
+ void FetchRows(const AddRowFunction& addRowFn) override;
static Object::Ptr HostAccessor(const Value& row, const Column::ObjectAccessor& parentObjectAccessor);
static Object::Ptr ServiceAccessor(const Value& row, const Column::ObjectAccessor& parentObjectAccessor);
static void AddColumns(Table *table, const String& prefix = String(),
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
- virtual String GetName() const override;
- virtual String GetPrefix() const override;
+ String GetName() const override;
+ String GetPrefix() const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn) override;
+ void FetchRows(const AddRowFunction& addRowFn) override;
static Value ConnectionsAccessor(const Value& row);
static Value ConnectionsRateAccessor(const Value& row);
StdAggregator(const String& attr);
- virtual void Apply(const Table::Ptr& table, const Value& row, AggregatorState **state) override;
- virtual double GetResultAndFreeState(AggregatorState *state) const override;
+ void Apply(const Table::Ptr& table, const Value& row, AggregatorState **state) override;
+ double GetResultAndFreeState(AggregatorState *state) const override;
private:
String m_StdAttr;
SumAggregator(const String& attr);
- virtual void Apply(const Table::Ptr& table, const Value& row, AggregatorState **state) override;
- virtual double GetResultAndFreeState(AggregatorState *state) const override;
+ void Apply(const Table::Ptr& table, const Value& row, AggregatorState **state) override;
+ double GetResultAndFreeState(AggregatorState *state) const override;
private:
String m_SumAttr;
static void AddColumns(Table *table, const String& prefix = String(),
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
- virtual String GetName() const override;
- virtual String GetPrefix() const override;
+ String GetName() const override;
+ String GetPrefix() const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn) override;
+ void FetchRows(const AddRowFunction& addRowFn) override;
static Value NameAccessor(const Value& row);
static Value AliasAccessor(const Value& row);
static void AddColumns(Table *table, const String& prefix = String(),
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
- virtual String GetName() const override;
- virtual String GetPrefix() const override;
+ String GetName() const override;
+ String GetPrefix() const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn) override;
+ void FetchRows(const AddRowFunction& addRowFn) override;
static Value NameAccessor(const Value& row);
static Value ParentAccessor(const Value& row);
static void StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
- virtual void Start(bool runtimeCreated) override;
- virtual void Stop(bool runtimeRemoved) override;
+ void Start(bool runtimeCreated) override;
+ void Stop(bool runtimeRemoved) override;
private:
Timer::Ptr m_NotificationTimer;
static String FormatTimestamp(double ts);
protected:
- virtual void OnConfigLoaded() override;
- virtual void Start(bool runtimeCreated) override;
- virtual void Stop(bool runtimeRemoved) override;
+ void OnConfigLoaded() override;
+ void Start(bool runtimeCreated) override;
+ void Stop(bool runtimeRemoved) override;
private:
String m_EventPrefix;
static void StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
protected:
- virtual void OnConfigLoaded() override;
- virtual void Start(bool runtimeCreated) override;
- virtual void Stop(bool runtimeRemoved) override;
+ void OnConfigLoaded() override;
+ void Start(bool runtimeCreated) override;
+ void Stop(bool runtimeRemoved) override;
private:
Stream::Ptr m_Stream;
static void StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
- virtual void ValidateHostNameTemplate(const String& value, const ValidationUtils& utils) override;
- virtual void ValidateServiceNameTemplate(const String& value, const ValidationUtils& utils) override;
+ void ValidateHostNameTemplate(const String& value, const ValidationUtils& utils) override;
+ void ValidateServiceNameTemplate(const String& value, const ValidationUtils& utils) override;
protected:
- virtual void OnConfigLoaded() override;
- virtual void Start(bool runtimeCreated) override;
- virtual void Stop(bool runtimeRemoved) override;
+ void OnConfigLoaded() override;
+ void Start(bool runtimeCreated) override;
+ void Stop(bool runtimeRemoved) override;
private:
Stream::Ptr m_Stream;
static void StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
- virtual void ValidateHostTemplate(const Dictionary::Ptr& value, const ValidationUtils& utils) override;
- virtual void ValidateServiceTemplate(const Dictionary::Ptr& value, const ValidationUtils& utils) override;
+ void ValidateHostTemplate(const Dictionary::Ptr& value, const ValidationUtils& utils) override;
+ void ValidateServiceTemplate(const Dictionary::Ptr& value, const ValidationUtils& utils) override;
protected:
- virtual void OnConfigLoaded() override;
- virtual void Start(bool runtimeCreated) override;
- virtual void Stop(bool runtimeRemoved) override;
+ void OnConfigLoaded() override;
+ void Start(bool runtimeCreated) override;
+ void Stop(bool runtimeRemoved) override;
private:
WorkQueue m_WorkQueue;
static void StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
protected:
- virtual void Start(bool runtimeCreated) override;
- virtual void Stop(bool runtimeRemoved) override;
+ void Start(bool runtimeCreated) override;
+ void Stop(bool runtimeRemoved) override;
private:
Stream::Ptr m_Stream;
static void StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
- virtual void ValidateHostFormatTemplate(const String& value, const ValidationUtils& utils) override;
- virtual void ValidateServiceFormatTemplate(const String& value, const ValidationUtils& utils) override;
+ void ValidateHostFormatTemplate(const String& value, const ValidationUtils& utils) override;
+ void ValidateServiceFormatTemplate(const String& value, const ValidationUtils& utils) override;
protected:
- virtual void Start(bool runtimeCreated) override;
- virtual void Stop(bool runtimeRemoved) override;
+ void Start(bool runtimeCreated) override;
+ void Stop(bool runtimeRemoved) override;
private:
void CheckResultHandler(const Checkable::Ptr& checkable, const CheckResult::Ptr& cr);
public:
DECLARE_PTR_TYPEDEFS(ActionsHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
+ bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
HttpResponse& response, const Dictionary::Ptr& params) override;
};
static String GetDefaultCaPath();
protected:
- virtual void OnConfigLoaded() override;
- virtual void OnAllConfigLoaded() override;
- virtual void Start(bool runtimeCreated) override;
- virtual void Stop(bool runtimeDeleted) override;
+ void OnConfigLoaded() override;
+ void OnAllConfigLoaded() override;
+ void Start(bool runtimeCreated) override;
+ void Stop(bool runtimeDeleted) override;
- virtual void ValidateTlsProtocolmin(const String& value, const ValidationUtils& utils) override;
+ void ValidateTlsProtocolmin(const String& value, const ValidationUtils& utils) override;
private:
std::shared_ptr<SSL_CTX> m_SSLContext;
public:
DECLARE_PTR_TYPEDEFS(ConfigFilesHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
+ bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
HttpResponse& response, const Dictionary::Ptr& params) override;
};
public:
DECLARE_PTR_TYPEDEFS(ConfigPackagesHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
+ bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
HttpResponse& response, const Dictionary::Ptr& params) override;
private:
public:
DECLARE_PTR_TYPEDEFS(ConfigStagesHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
+ bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
HttpResponse& response, const Dictionary::Ptr& params) override;
private:
public:
DECLARE_PTR_TYPEDEFS(ConsoleHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
+ bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
HttpResponse& response, const Dictionary::Ptr& params) override;
static std::vector<String> GetAutocompletionSuggestions(const String& word, ScriptFrame& frame);
public:
DECLARE_PTR_TYPEDEFS(CreateObjectHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
+ bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
HttpResponse& response, const Dictionary::Ptr& params) override;
};
public:
DECLARE_PTR_TYPEDEFS(DeleteObjectHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
+ bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
HttpResponse& response, const Dictionary::Ptr& params) override;
};
intrusive_ptr<Zone> GetZone() const;
- virtual bool GetConnected() const override;
+ bool GetConnected() const override;
static Endpoint::Ptr GetLocalEndpoint();
double GetBytesReceivedPerSecond() const override;
protected:
- virtual void OnAllConfigLoaded() override;
+ void OnAllConfigLoaded() override;
private:
mutable boost::mutex m_ClientsLock;
public:
DECLARE_PTR_TYPEDEFS(EventsHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
+ bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
HttpResponse& response, const Dictionary::Ptr& params) override;
};
public:
DECLARE_PTR_TYPEDEFS(ConfigObjectTargetProvider);
- virtual void FindTargets(const String& type, const std::function<void (const Value&)>& addTarget) const override;
- virtual Value GetTargetByName(const String& type, const String& name) const override;
- virtual bool IsValidType(const String& type) const override;
- virtual String GetPluralName(const String& type) const override;
+ void FindTargets(const String& type, const std::function<void (const Value&)>& addTarget) const override;
+ Value GetTargetByName(const String& type, const String& name) const override;
+ bool IsValidType(const String& type) const override;
+ String GetPluralName(const String& type) const override;
};
struct QueryDescription
public:
DECLARE_PTR_TYPEDEFS(InfoHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
+ bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
HttpResponse& response, const Dictionary::Ptr& params) override;
};
public:
DECLARE_PTR_TYPEDEFS(ModifyObjectHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
+ bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
HttpResponse& response, const Dictionary::Ptr& params) override;
};
public:
DECLARE_PTR_TYPEDEFS(ObjectQueryHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
+ bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
HttpResponse& response, const Dictionary::Ptr& params) override;
private:
public:
DECLARE_PTR_TYPEDEFS(StatusTargetProvider);
- virtual void FindTargets(const String& type,
+ void FindTargets(const String& type,
const std::function<void (const Value&)>& addTarget) const override
{
Dictionary::Ptr statsFunctions = ScriptGlobal::Get("StatsFunctions", &Empty);
}
}
- virtual Value GetTargetByName(const String& type, const String& name) const override
+ Value GetTargetByName(const String& type, const String& name) const override
{
Dictionary::Ptr statsFunctions = ScriptGlobal::Get("StatsFunctions", &Empty);
return result;
}
- virtual bool IsValidType(const String& type) const override
+ bool IsValidType(const String& type) const override
{
return type == "Status";
}
- virtual String GetPluralName(const String& type) const override
+ String GetPluralName(const String& type) const override
{
return "statuses";
}
public:
DECLARE_PTR_TYPEDEFS(StatusHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
+ bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
HttpResponse& response, const Dictionary::Ptr& params) override;
};
return target;
}
- virtual void FindTargets(const String& type,
+ void FindTargets(const String& type,
const std::function<void (const Value&)>& addTarget) const override
{
Type::Ptr ptype = Type::GetByName(type);
}
}
- virtual Value GetTargetByName(const String& type, const String& name) const override
+ Value GetTargetByName(const String& type, const String& name) const override
{
Type::Ptr ptype = Type::GetByName(type);
return GetTargetForTemplate(item);
}
- virtual bool IsValidType(const String& type) const override
+ bool IsValidType(const String& type) const override
{
Type::Ptr ptype = Type::GetByName(type);
return ConfigObject::TypeInstance->IsAssignableFrom(ptype);
}
- virtual String GetPluralName(const String& type) const override
+ String GetPluralName(const String& type) const override
{
return Type::GetByName(type)->GetPluralName();
}
public:
DECLARE_PTR_TYPEDEFS(TemplateQueryHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
+ bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
HttpResponse& response, const Dictionary::Ptr& params) override;
};
public:
DECLARE_PTR_TYPEDEFS(TypeTargetProvider);
- virtual void FindTargets(const String& type,
+ void FindTargets(const String& type,
const std::function<void (const Value&)>& addTarget) const override
{
for (const Type::Ptr& target : Type::GetAllTypes()) {
}
}
- virtual Value GetTargetByName(const String& type, const String& name) const override
+ Value GetTargetByName(const String& type, const String& name) const override
{
Type::Ptr ptype = Type::GetByName(name);
return ptype;
}
- virtual bool IsValidType(const String& type) const override
+ bool IsValidType(const String& type) const override
{
return type == "Type";
}
- virtual String GetPluralName(const String& type) const override
+ String GetPluralName(const String& type) const override
{
return "types";
}
public:
DECLARE_PTR_TYPEDEFS(TypeQueryHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
+ bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
HttpResponse& response, const Dictionary::Ptr& params) override;
};
return target;
}
- virtual void FindTargets(const String& type,
+ void FindTargets(const String& type,
const std::function<void (const Value&)>& addTarget) const override
{
{
}
}
- virtual Value GetTargetByName(const String& type, const String& name) const override
+ Value GetTargetByName(const String& type, const String& name) const override
{
return GetTargetForVar(name, ScriptGlobal::Get(name));
}
- virtual bool IsValidType(const String& type) const override
+ bool IsValidType(const String& type) const override
{
return type == "Variable";
}
- virtual String GetPluralName(const String& type) const override
+ String GetPluralName(const String& type) const override
{
return "variables";
}
public:
DECLARE_PTR_TYPEDEFS(VariableQueryHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
+ bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
HttpResponse& response, const Dictionary::Ptr& params) override;
};
DECLARE_OBJECT(Zone);
DECLARE_OBJECTNAME(Zone);
- virtual void OnAllConfigLoaded() override;
+ void OnAllConfigLoaded() override;
Zone::Ptr GetParent() const;
std::set<Endpoint::Ptr> GetEndpoints() const;
static Zone::Ptr GetLocalZone();
protected:
- virtual void ValidateEndpointsRaw(const Array::Ptr& value, const ValidationUtils& utils) override;
+ void ValidateEndpointsRaw(const Array::Ptr& value, const ValidationUtils& utils) override;
private:
Zone::Ptr m_Parent;
<< "public:" << std::endl
<< "\t" << "DECLARE_PTR_TYPEDEFS(TypeImpl<" << klass.Name << ">);" << std::endl << std::endl
<< "\t" << "TypeImpl();" << std::endl
- << "\t" << "~TypeImpl();" << std::endl << std::endl;
+ << "\t" << "~TypeImpl() override;" << std::endl << std::endl;
m_Impl << "TypeImpl<" << klass.Name << ">::TypeImpl()" << std::endl
<< "{ }" << std::endl << std::endl
<< "{ }" << std::endl << std::endl;
/* GetName */
- m_Header << "\t" << "virtual String GetName() const;" << std::endl;
+ m_Header << "\t" << "String GetName() const override;" << std::endl;
m_Impl << "String TypeImpl<" << klass.Name << ">::GetName() const" << std::endl
<< "{" << std::endl
<< "}" << std::endl << std::endl;
/* GetAttributes */
- m_Header << "\t" << "virtual int GetAttributes() const;" << std::endl;
+ m_Header << "\t" << "int GetAttributes() const override;" << std::endl;
m_Impl << "int TypeImpl<" << klass.Name << ">::GetAttributes() const" << std::endl
<< "{" << std::endl
<< "}" << std::endl << std::endl;
/* GetBaseType */
- m_Header << "\t" << "virtual Type::Ptr GetBaseType() const;" << std::endl;
+ m_Header << "\t" << "Type::Ptr GetBaseType() const override;" << std::endl;
m_Impl << "Type::Ptr TypeImpl<" << klass.Name << ">::GetBaseType() const" << std::endl
<< "{" << std::endl
<< "}" << std::endl << std::endl;
/* GetFieldId */
- m_Header << "\t" << "virtual int GetFieldId(const String& name) const;" << std::endl;
+ m_Header << "\t" << "int GetFieldId(const String& name) const override;" << std::endl;
m_Impl << "int TypeImpl<" << klass.Name << ">::GetFieldId(const String& name) const" << std::endl
<< "{" << std::endl;
<< "}" << std::endl << std::endl;
/* GetFieldInfo */
- m_Header << "\t" << "virtual Field GetFieldInfo(int id) const;" << std::endl;
+ m_Header << "\t" << "Field GetFieldInfo(int id) const override;" << std::endl;
m_Impl << "Field TypeImpl<" << klass.Name << ">::GetFieldInfo(int id) const" << std::endl
<< "{" << std::endl;
m_Impl << "}" << std::endl << std::endl;
/* GetFieldCount */
- m_Header << "\t" << "virtual int GetFieldCount() const;" << std::endl;
+ m_Header << "\t" << "int GetFieldCount() const override;" << std::endl;
m_Impl << "int TypeImpl<" << klass.Name << ">::GetFieldCount() const" << std::endl
<< "{" << std::endl
<< "}" << std::endl << std::endl;
/* GetFactory */
- m_Header << "\t" << "virtual ObjectFactory GetFactory() const;" << std::endl;
+ m_Header << "\t" << "ObjectFactory GetFactory() const override;" << std::endl;
m_Impl << "ObjectFactory TypeImpl<" << klass.Name << ">::GetFactory() const" << std::endl
<< "{" << std::endl
<< "}" << std::endl << std::endl;
/* GetLoadDependencies */
- m_Header << "\t" << "virtual std::vector<String> GetLoadDependencies() const;" << std::endl;
+ m_Header << "\t" << "std::vector<String> GetLoadDependencies() const override;" << std::endl;
m_Impl << "std::vector<String> TypeImpl<" << klass.Name << ">::GetLoadDependencies() const" << std::endl
<< "{" << std::endl
/* RegisterAttributeHandler */
m_Header << "public:" << std::endl
- << "\t" << "virtual void RegisterAttributeHandler(int fieldId, const Type::AttributeHandler& callback);" << std::endl;
+ << "\t" << "void RegisterAttributeHandler(int fieldId, const Type::AttributeHandler& callback) override;" << std::endl;
m_Impl << "void TypeImpl<" << klass.Name << ">::RegisterAttributeHandler(int fieldId, const Type::AttributeHandler& callback)" << std::endl
<< "{" << std::endl;
<< "\t" << "DECLARE_PTR_TYPEDEFS(ObjectImpl<" << klass.Name << ">);" << std::endl << std::endl;
/* Validate */
- m_Header << "\t" << "virtual void Validate(int types, const ValidationUtils& utils) override;" << std::endl;
+ m_Header << "\t" << "void Validate(int types, const ValidationUtils& utils) override;" << std::endl;
m_Impl << "void ObjectImpl<" << klass.Name << ">::Validate(int types, const ValidationUtils& utils)" << std::endl
<< "{" << std::endl;
/* destructor */
m_Header << "public:" << std::endl
- << "\t" << "~ObjectImpl<" << klass.Name << ">();" << std::endl;
+ << "\t" << "~ObjectImpl<" << klass.Name << ">() override;" << std::endl;
m_Impl << "ObjectImpl<" << klass.Name << ">::~ObjectImpl()" << std::endl
<< "{ }" << std::endl << std::endl;
if (!klass.Fields.empty()) {
/* SetField */
m_Header << "public:" << std::endl
- << "\t" << "virtual void SetField(int id, const Value& value, bool suppress_events = false, const Value& cookie = Empty) override;" << std::endl;
+ << "\t" << "void SetField(int id, const Value& value, bool suppress_events = false, const Value& cookie = Empty) override;" << std::endl;
m_Impl << "void ObjectImpl<" << klass.Name << ">::SetField(int id, const Value& value, bool suppress_events, const Value& cookie)" << std::endl
<< "{" << std::endl;
/* GetField */
m_Header << "public:" << std::endl
- << "\t" << "virtual Value GetField(int id) const override;" << std::endl;
+ << "\t" << "Value GetField(int id) const override;" << std::endl;
m_Impl << "Value ObjectImpl<" << klass.Name << ">::GetField(int id) const" << std::endl
<< "{" << std::endl;
/* ValidateField */
m_Header << "public:" << std::endl
- << "\t" << "virtual void ValidateField(int id, const Value& value, const ValidationUtils& utils) override;" << std::endl;
+ << "\t" << "void ValidateField(int id, const Value& value, const ValidationUtils& utils) override;" << std::endl;
m_Impl << "void ObjectImpl<" << klass.Name << ">::ValidateField(int id, const Value& value, const ValidationUtils& utils)" << std::endl
<< "{" << std::endl;
/* NavigateField */
m_Header << "public:" << std::endl
- << "\t" << "virtual Object::Ptr NavigateField(int id) const override;" << std::endl;
+ << "\t" << "Object::Ptr NavigateField(int id) const override;" << std::endl;
m_Impl << "Object::Ptr ObjectImpl<" << klass.Name << ">::NavigateField(int id) const" << std::endl
<< "{" << std::endl;
/* start/stop */
if (needs_tracking) {
m_Header << "protected:" << std::endl
- << "\tvirtual void Start(bool runtimeCreated = false) override;" << std::endl
- << "\tvirtual void Stop(bool runtimeRemoved = false) override;" << std::endl;
+ << "\tvoid Start(bool runtimeCreated = false) override;" << std::endl
+ << "\tvoid Stop(bool runtimeRemoved = false) override;" << std::endl;
m_Impl << "void ObjectImpl<" << klass.Name << ">::Start(bool runtimeCreated)" << std::endl
<< "{" << std::endl