ScriptError(const String& message, const DebugInfo& di, bool incompleteExpr = false);
~ScriptError(void) throw();
- virtual const char *what(void) const throw();
+ virtual const char *what(void) const throw() override;
DebugInfo GetDebugInfo(void) const;
bool IsIncompleteExpression(void) const;
ValidationError(const ConfigObject::Ptr& object, const std::vector<String>& attributePath, const String& message);
~ValidationError(void) throw();
- virtual const char *what(void) const throw();
+ virtual const char *what(void) const throw() override;
ConfigObject::Ptr GetObject(void) const;
std::vector<String> GetAttributePath(void) const;
posix_error(void);
virtual ~posix_error(void) throw();
- virtual const char *what(void) const throw();
+ virtual const char *what(void) const throw() override;
private:
mutable char *m_Message;
FIFO(void);
~FIFO(void);
- virtual size_t Peek(void *buffer, size_t count, bool allow_partial = false);
- virtual size_t Read(void *buffer, size_t count, bool allow_partial = false);
- virtual void Write(const void *buffer, size_t count);
- virtual void Close(void);
- virtual bool IsEof(void) const;
- virtual bool SupportsWaiting(void) const;
- virtual bool IsDataAvailable(void) const;
+ 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(void) override;
+ virtual bool IsEof(void) const override;
+ virtual bool SupportsWaiting(void) const override;
+ virtual bool IsDataAvailable(void) const override;
size_t GetAvailableBytes(void) const;
NetworkStream(const Socket::Ptr& socket);
- virtual size_t Read(void *buffer, size_t count, bool allow_partial = false);
- virtual void Write(const void *buffer, size_t count);
+ 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(void);
+ virtual void Close(void) override;
- virtual bool IsEof(void) const;
+ virtual bool IsEof(void) const override;
private:
Socket::Ptr m_Socket;
public:
PrimitiveType(const String& name, const String& base, const ObjectFactory& factory = ObjectFactory());
- virtual String GetName(void) const;
- virtual Type::Ptr GetBaseType(void) const;
- virtual int GetAttributes(void) const;
- virtual int GetFieldId(const String& name) const;
- virtual Field GetFieldInfo(int id) const;
- virtual int GetFieldCount(void) const;
+ virtual String GetName(void) const override;
+ virtual Type::Ptr GetBaseType(void) const override;
+ virtual int GetAttributes(void) const override;
+ virtual int GetFieldId(const String& name) const override;
+ virtual Field GetFieldInfo(int id) const override;
+ virtual int GetFieldCount(void) const override;
protected:
- virtual ObjectFactory GetFactory(void) const;
+ virtual ObjectFactory GetFactory(void) const override;
private:
String m_Name;
StdioStream(std::iostream *innerStream, bool ownsStream);
~StdioStream(void);
- virtual size_t Read(void *buffer, size_t size, bool allow_partial = false);
- virtual void Write(const void *buffer, size_t size);
+ virtual size_t Read(void *buffer, size_t size, bool allow_partial = false) override;
+ virtual void Write(const void *buffer, size_t size) override;
- virtual void Close(void);
+ virtual void Close(void) override;
- virtual bool IsDataAvailable(void) const;
- virtual bool IsEof(void) const;
+ virtual bool IsDataAvailable(void) const override;
+ virtual bool IsEof(void) const override;
private:
std::iostream *m_InnerStream;
void Handshake(void);
- virtual void Close(void);
- virtual void Shutdown(void);
+ virtual void Close(void) override;
+ virtual void Shutdown(void) override;
- virtual size_t Peek(void *buffer, size_t count, bool allow_partial = false);
- virtual size_t Read(void *buffer, size_t count, bool allow_partial = false);
- virtual void Write(const void *buffer, size_t count);
+ 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 bool IsEof(void) const;
+ virtual bool IsEof(void) const override;
- virtual bool SupportsWaiting(void) const;
- virtual bool IsDataAvailable(void) const;
+ virtual bool SupportsWaiting(void) const override;
+ virtual bool IsDataAvailable(void) const override;
bool IsVerifyOK(void) const;
static int m_SSLIndex;
static bool m_SSLIndexInitialized;
- virtual void OnEvent(int revents);
+ virtual void OnEvent(int revents) override;
void HandleError(void) const;
public:
DECLARE_PTR_TYPEDEFS(Type);
- virtual String GetName(void) const;
- virtual Type::Ptr GetBaseType(void) const;
- virtual int GetAttributes(void) const;
- virtual int GetFieldId(const String& name) const;
- virtual Field GetFieldInfo(int id) const;
- virtual int GetFieldCount(void) const;
+ virtual String GetName(void) const override;
+ virtual Type::Ptr GetBaseType(void) const override;
+ virtual int GetAttributes(void) const override;
+ virtual int GetFieldId(const String& name) const override;
+ virtual Field GetFieldInfo(int id) const override;
+ virtual int GetFieldCount(void) const override;
static Object::Ptr GetPrototype(void);
protected:
- virtual ObjectFactory GetFactory(void) const;
+ virtual ObjectFactory GetFactory(void) const override;
};
template<typename T>
public:
DECLARE_PTR_TYPEDEFS(ApiSetupCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
- virtual int GetMaxArguments(void) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
- virtual ImpersonationLevel GetImpersonationLevel(void) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
+ virtual int GetMaxArguments(void) const override;
+ virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ virtual ImpersonationLevel GetImpersonationLevel(void) const override;
};
}
public:
DECLARE_PTR_TYPEDEFS(ConsoleCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
- virtual ImpersonationLevel GetImpersonationLevel(void) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
+ virtual ImpersonationLevel GetImpersonationLevel(void) const override;
virtual void InitParameters(boost::program_options::options_description& visibleDesc,
- boost::program_options::options_description& hiddenDesc) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ 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;
};
}
public:
DECLARE_PTR_TYPEDEFS(DaemonCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
virtual void InitParameters(boost::program_options::options_description& visibleDesc,
- boost::program_options::options_description& hiddenDesc) const;
- virtual std::vector<String> GetArgumentSuggestions(const String& argument, const String& word) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ 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;
};
}
public:
DECLARE_PTR_TYPEDEFS(FeatureDisableCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
- virtual int GetMinArguments(void) const;
- virtual int GetMaxArguments(void) const;
- virtual std::vector<String> GetPositionalSuggestions(const String& word) const;
- virtual ImpersonationLevel GetImpersonationLevel(void) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
+ virtual int GetMinArguments(void) const override;
+ virtual int GetMaxArguments(void) const override;
+ virtual std::vector<String> GetPositionalSuggestions(const String& word) const override;
+ virtual ImpersonationLevel GetImpersonationLevel(void) const override;
+ virtual 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(void) const;
- virtual String GetShortDescription(void) const;
- virtual int GetMinArguments(void) const;
- virtual int GetMaxArguments(void) const;
- virtual std::vector<String> GetPositionalSuggestions(const String& word) const;
- virtual ImpersonationLevel GetImpersonationLevel(void) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
+ virtual int GetMinArguments(void) const override;
+ virtual int GetMaxArguments(void) const override;
+ virtual std::vector<String> GetPositionalSuggestions(const String& word) const override;
+ virtual ImpersonationLevel GetImpersonationLevel(void) const override;
+ virtual 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(void) const;
- virtual String GetShortDescription(void) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
+ virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
};
}
public:
DECLARE_PTR_TYPEDEFS(NodeAddCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
- virtual int GetMinArguments(void) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
+ virtual int GetMinArguments(void) const override;
+ virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
};
}
BlackAndWhitelistCommand(const String& type, BlackAndWhitelistCommandType command);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
virtual void InitParameters(boost::program_options::options_description& visibleDesc,
- boost::program_options::options_description& hiddenDesc) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ 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;
private:
String m_Type;
public:
DECLARE_PTR_TYPEDEFS(NodeListCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
virtual void InitParameters(boost::program_options::options_description& visibleDesc,
- boost::program_options::options_description& hiddenDesc) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ 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;
};
}
public:
DECLARE_PTR_TYPEDEFS(NodeRemoveCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
- virtual int GetMinArguments(void) const;
- virtual int GetMaxArguments(void) const;
- virtual std::vector<String> GetPositionalSuggestions(const String& word) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
+ virtual int GetMinArguments(void) const override;
+ virtual int GetMaxArguments(void) const override;
+ virtual std::vector<String> GetPositionalSuggestions(const String& word) const override;
+ virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
};
}
public:
DECLARE_PTR_TYPEDEFS(NodeSetCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
- virtual int GetMinArguments(void) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
+ virtual int GetMinArguments(void) const override;
virtual void InitParameters(boost::program_options::options_description& visibleDesc,
- boost::program_options::options_description& hiddenDesc) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ 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;
};
}
public:
DECLARE_PTR_TYPEDEFS(NodeSetupCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
virtual void InitParameters(boost::program_options::options_description& visibleDesc,
- boost::program_options::options_description& hiddenDesc) const;
- virtual std::vector<String> GetArgumentSuggestions(const String& argument, const String& word) const;
- virtual ImpersonationLevel GetImpersonationLevel(void) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ boost::program_options::options_description& hiddenDesc) const override;
+ virtual std::vector<String> GetArgumentSuggestions(const String& argument, const String& word) const override;
+ virtual ImpersonationLevel GetImpersonationLevel(void) const override;
+ virtual 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(NodeUpdateConfigCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
- virtual ImpersonationLevel GetImpersonationLevel(void) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
+ virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ virtual ImpersonationLevel GetImpersonationLevel(void) const override;
};
}
public:
DECLARE_PTR_TYPEDEFS(NodeWizardCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
- virtual int GetMaxArguments(void) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
- virtual ImpersonationLevel GetImpersonationLevel(void) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
+ virtual int GetMaxArguments(void) const override;
+ virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
+ virtual ImpersonationLevel GetImpersonationLevel(void) const override;
};
}
public:
DECLARE_PTR_TYPEDEFS(ObjectListCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
virtual void InitParameters(boost::program_options::options_description& visibleDesc,
- boost::program_options::options_description& hiddenDesc) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ 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;
private:
static void PrintTypeCounts(std::ostream& fp, const std::map<String, int>& type_count);
public:
DECLARE_PTR_TYPEDEFS(PKINewCACommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
+ virtual 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(void) const;
- virtual String GetShortDescription(void) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
virtual void InitParameters(boost::program_options::options_description& visibleDesc,
- boost::program_options::options_description& hiddenDesc) const;
- virtual std::vector<String> GetArgumentSuggestions(const String& argument, const String& word) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ 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;
};
public:
DECLARE_PTR_TYPEDEFS(PKIRequestCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
virtual void InitParameters(boost::program_options::options_description& visibleDesc,
- boost::program_options::options_description& hiddenDesc) const;
- virtual std::vector<String> GetArgumentSuggestions(const String& argument, const String& word) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ 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;
};
public:
DECLARE_PTR_TYPEDEFS(PKISaveCertCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
virtual void InitParameters(boost::program_options::options_description& visibleDesc,
- boost::program_options::options_description& hiddenDesc) const;
- virtual std::vector<String> GetArgumentSuggestions(const String& argument, const String& word) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ 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;
};
public:
DECLARE_PTR_TYPEDEFS(PKISignCSRCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
virtual void InitParameters(boost::program_options::options_description& visibleDesc,
- boost::program_options::options_description& hiddenDesc) const;
- virtual std::vector<String> GetArgumentSuggestions(const String& argument, const String& word) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ 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;
};
public:
DECLARE_PTR_TYPEDEFS(PKITicketCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
virtual void InitParameters(boost::program_options::options_description& visibleDesc,
- boost::program_options::options_description& hiddenDesc) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ 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;
};
public:
DECLARE_PTR_TYPEDEFS(RepositoryClearChangesCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
- virtual ImpersonationLevel GetImpersonationLevel(void) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
+ virtual ImpersonationLevel GetImpersonationLevel(void) const override;
+ virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
};
}
public:
DECLARE_PTR_TYPEDEFS(RepositoryCommitCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
virtual void InitParameters(boost::program_options::options_description& visibleDesc,
- boost::program_options::options_description& hiddenDesc) const;
- virtual ImpersonationLevel GetImpersonationLevel(void) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ boost::program_options::options_description& hiddenDesc) const override;
+ virtual ImpersonationLevel GetImpersonationLevel(void) const override;
+ virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
};
}
RepositoryObjectCommand(const String& type, RepositoryCommandType command);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
- virtual int GetMaxArguments(void) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
+ virtual int GetMaxArguments(void) const override;
virtual void InitParameters(boost::program_options::options_description& visibleDesc,
- boost::program_options::options_description& hiddenDesc) const;
- virtual ImpersonationLevel GetImpersonationLevel(void) const;
- virtual std::vector<String> GetPositionalSuggestions(const String& word) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ boost::program_options::options_description& hiddenDesc) const override;
+ virtual ImpersonationLevel GetImpersonationLevel(void) const override;
+ virtual std::vector<String> GetPositionalSuggestions(const String& word) const override;
+ virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
private:
String m_Type;
public:
DECLARE_PTR_TYPEDEFS(TroubleshootCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) 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,
- boost::program_options::options_description& hiddenDesc) const;
+ boost::program_options::options_description& hiddenDesc) const override;
private:
class InfoLog;
public:
DECLARE_PTR_TYPEDEFS(VariableGetCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
- virtual int GetMinArguments(void) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
+ virtual int GetMinArguments(void) const override;
void InitParameters(boost::program_options::options_description& visibleDesc,
- boost::program_options::options_description& hiddenDesc) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ 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;
};
}
public:
DECLARE_PTR_TYPEDEFS(VariableListCommand);
- virtual String GetDescription(void) const;
- virtual String GetShortDescription(void) const;
- virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const;
+ virtual String GetDescription(void) const override;
+ virtual String GetShortDescription(void) const override;
+ virtual 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);
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override
{
return m_Expression->DoEvaluate(frame, dhint);
}
- virtual const DebugInfo& GetDebugInfo(void) const
+ virtual const DebugInfo& GetDebugInfo(void) const override
{
return m_Expression->GetDebugInfo();
}
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override
{
return m_Future.get()->DoEvaluate(frame, dhint);
}
- virtual const DebugInfo& GetDebugInfo(void) const
+ virtual const DebugInfo& GetDebugInfo(void) const override
{
return m_Future.get()->GetDebugInfo();
}
LiteralExpression(const Value& value = Value());
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
Value m_Value;
{ }
protected:
- virtual const DebugInfo& GetDebugInfo(void) const;
+ virtual const DebugInfo& GetDebugInfo(void) const override;
DebugInfo m_DebugInfo;
};
}
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
- virtual bool GetReference(ScriptFrame& frame, bool init_dict, Value *parent, String *index, DebugHint **dhint) const;
+ 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;
private:
String m_Variable;
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API LogicalNegateExpression : public UnaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API AddExpression : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API SubtractExpression : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API MultiplyExpression : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API DivideExpression : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API ModuloExpression : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API XorExpression : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API BinaryAndExpression : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API BinaryOrExpression : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API ShiftLeftExpression : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API ShiftRightExpression : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API EqualExpression : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API NotEqualExpression : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API LessThanExpression : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API GreaterThanExpression : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API LessThanOrEqualExpression : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API GreaterThanOrEqualExpression : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API InExpression : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API NotInExpression : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API LogicalAndExpression : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API LogicalOrExpression : public BinaryExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API FunctionCallExpression : public DebuggableExpression
}
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
public:
Expression *m_FName;
}
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
std::vector<Expression *> m_Expressions;
void MakeInline(void);
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
std::vector<Expression *> m_Expressions;
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
CombinedSetOp m_Op;
}
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
Expression *m_Condition;
}
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
Expression *m_Condition;
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API BreakExpression : public DebuggableExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API ContinueExpression : public DebuggableExpression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
};
class I2_CONFIG_API GetScopeExpression : public Expression
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
ScopeSpecifier m_ScopeSpec;
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
- virtual bool GetReference(ScriptFrame& frame, bool init_dict, Value *parent, String *index, DebugHint **dhint) const;
+ 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;
friend I2_CONFIG_API void BindToScope(Expression *& expr, ScopeSpecifier scopeSpec);
};
}
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
Expression *m_Name;
{ }
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
std::vector<String> m_Args;
}
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
String m_Type;
}
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
bool m_Abstract;
}
protected:
- virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const;
+ virtual ExpressionResult DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const override;
private:
String m_FKVar;
CommandDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
- virtual Dictionary::Ptr GetConfigFields(void) const;
- virtual Dictionary::Ptr GetStatusFields(void) const;
+ virtual Dictionary::Ptr GetConfigFields(void) const override;
+ virtual Dictionary::Ptr GetStatusFields(void) const override;
protected:
- virtual void OnConfigUpdate(void);
+ virtual void OnConfigUpdate(void) override;
};
}
static void StaticInitialize(void);
- virtual Dictionary::Ptr GetConfigFields(void) const;
- virtual Dictionary::Ptr GetStatusFields(void) const;
+ virtual Dictionary::Ptr GetConfigFields(void) const override;
+ virtual Dictionary::Ptr GetStatusFields(void) 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(void) const;
- virtual Dictionary::Ptr GetStatusFields(void) const;
+ virtual Dictionary::Ptr GetConfigFields(void) const override;
+ virtual Dictionary::Ptr GetStatusFields(void) const override;
private:
- virtual void OnConfigUpdate(void);
- virtual void OnStatusUpdate(void);
+ virtual void OnConfigUpdate(void) override;
+ virtual void OnStatusUpdate(void) override;
};
}
HostGroupDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
- virtual Dictionary::Ptr GetConfigFields(void) const;
- virtual Dictionary::Ptr GetStatusFields(void) const;
+ virtual Dictionary::Ptr GetConfigFields(void) const override;
+ virtual Dictionary::Ptr GetStatusFields(void) const override;
protected:
- virtual void OnConfigUpdate(void);
+ virtual void OnConfigUpdate(void) override;
private:
static void MembersChangedHandler(const HostGroup::Ptr& hgfilter);
static void StaticInitialize(void);
- virtual Dictionary::Ptr GetConfigFields(void) const;
- virtual Dictionary::Ptr GetStatusFields(void) const;
+ virtual Dictionary::Ptr GetConfigFields(void) const override;
+ virtual Dictionary::Ptr GetStatusFields(void) const override;
protected:
- virtual bool IsStatusAttribute(const String& attribute) const;
+ virtual bool IsStatusAttribute(const String& attribute) const override;
- virtual void OnConfigUpdate(void);
- virtual void OnStatusUpdate(void);
+ virtual void OnConfigUpdate(void) override;
+ virtual void OnStatusUpdate(void) override;
};
}
ServiceGroupDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
- virtual Dictionary::Ptr GetConfigFields(void) const;
- virtual Dictionary::Ptr GetStatusFields(void) const;
+ virtual Dictionary::Ptr GetConfigFields(void) const override;
+ virtual Dictionary::Ptr GetStatusFields(void) const override;
protected:
- virtual void OnConfigUpdate(void);
+ virtual void OnConfigUpdate(void) override;
};
}
TimePeriodDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
- virtual Dictionary::Ptr GetConfigFields(void) const;
- virtual Dictionary::Ptr GetStatusFields(void) const;
- virtual void OnConfigUpdate(void);
+ virtual Dictionary::Ptr GetConfigFields(void) const override;
+ virtual Dictionary::Ptr GetStatusFields(void) const override;
+ virtual void OnConfigUpdate(void) override;
};
}
UserDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
- virtual Dictionary::Ptr GetConfigFields(void) const;
- virtual Dictionary::Ptr GetStatusFields(void) const;
+ virtual Dictionary::Ptr GetConfigFields(void) const override;
+ virtual Dictionary::Ptr GetStatusFields(void) const override;
- virtual void OnConfigUpdate(void);
+ virtual void OnConfigUpdate(void) override;
- virtual bool IsStatusAttribute(const String& attribute) const;
+ virtual bool IsStatusAttribute(const String& attribute) const override;
};
}
UserGroupDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
- virtual Dictionary::Ptr GetConfigFields(void) const;
- virtual Dictionary::Ptr GetStatusFields(void) const;
+ virtual Dictionary::Ptr GetConfigFields(void) const override;
+ virtual Dictionary::Ptr GetStatusFields(void) const override;
protected:
- virtual void OnConfigUpdate(void);
+ virtual void OnConfigUpdate(void) override;
};
}
ZoneDbObject(const intrusive_ptr<DbType>& type, const String& name1, const String& name2);
- virtual Dictionary::Ptr GetConfigFields(void) const;
- virtual Dictionary::Ptr GetStatusFields(void) const;
+ virtual Dictionary::Ptr GetConfigFields(void) const override;
+ virtual Dictionary::Ptr GetStatusFields(void) const override;
};
}
AndFilter(void);
- virtual bool Apply(const Table::Ptr& table, const Value& row);
+ virtual 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);
+ virtual 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);
- virtual double GetResult(void) const;
+ virtual void Apply(const Table::Ptr& table, const Value& row) override;
+ virtual double GetResult(void) const override;
private:
double m_Avg;
static void AddColumns(Table *table, const String& prefix = String(),
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
- virtual String GetName(void) const;
- virtual String GetPrefix(void) const;
+ virtual String GetName(void) const override;
+ virtual String GetPrefix(void) const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn);
+ virtual 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(void) const;
- virtual String GetPrefix(void) const;
+ virtual String GetName(void) const override;
+ virtual String GetPrefix(void) const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn);
+ virtual 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(void) const;
- virtual String GetPrefix(void) const;
+ virtual String GetName(void) const override;
+ virtual String GetPrefix(void) const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn);
+ virtual 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(void) const;
- virtual String GetPrefix(void) const;
+ virtual String GetName(void) const override;
+ virtual String GetPrefix(void) const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn);
+ virtual void FetchRows(const AddRowFunction& addRowFn) override;
static Value NameAccessor(const Value& row);
static Value AliasAccessor(const Value& row);
CountAggregator(void);
- virtual void Apply(const Table::Ptr& table, const Value& row);
- virtual double GetResult(void) const;
+ virtual void Apply(const Table::Ptr& table, const Value& row) override;
+ virtual double GetResult(void) const override;
private:
int m_Count;
static void AddColumns(Table *table, const String& prefix = String(),
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
- virtual String GetName(void) const;
- virtual String GetPrefix(void) const;
+ virtual String GetName(void) const override;
+ virtual String GetPrefix(void) const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn);
+ virtual 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(void) const;
- virtual String GetPrefix(void) const;
+ virtual String GetName(void) const override;
+ virtual String GetPrefix(void) const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn);
+ virtual 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(void) const;
- virtual String GetPrefix(void) const;
+ virtual String GetName(void) const override;
+ virtual String GetPrefix(void) const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn);
+ virtual 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(void) const;
- virtual String GetPrefix(void) const;
+ virtual String GetName(void) const override;
+ virtual String GetPrefix(void) const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn);
+ virtual 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);
- virtual double GetResult(void) const;
+ virtual void Apply(const Table::Ptr& table, const Value& row) override;
+ virtual double GetResult(void) const override;
private:
double m_InvAvg;
InvSumAggregator(const String& attr);
- virtual void Apply(const Table::Ptr& table, const Value& row);
- virtual double GetResult(void) const;
+ virtual void Apply(const Table::Ptr& table, const Value& row) override;
+ virtual double GetResult(void) const override;
private:
double m_InvSum;
static void AddColumns(Table *table, const String& prefix = String(),
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
- virtual String GetName(void) const;
- virtual String GetPrefix(void) const;
+ virtual String GetName(void) const override;
+ virtual String GetPrefix(void) const override;
- void UpdateLogEntries(const Dictionary::Ptr& log_entry_attrs, int line_count, int lineno, const AddRowFunction& addRowFn);
+ void UpdateLogEntries(const Dictionary::Ptr& log_entry_attrs, int line_count, int lineno, const AddRowFunction& addRowFn) override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn);
+ virtual 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);
- virtual double GetResult(void) const;
+ virtual void Apply(const Table::Ptr& table, const Value& row) override;
+ virtual double GetResult(void) const override;
private:
double m_Max;
MinAggregator(const String& attr);
- virtual void Apply(const Table::Ptr& table, const Value& row);
- virtual double GetResult(void) const;
+ virtual void Apply(const Table::Ptr& table, const Value& row) override;
+ virtual double GetResult(void) const override;
private:
double m_Min;
NegateFilter(const Filter::Ptr& inner);
- virtual bool Apply(const Table::Ptr& table, const Value& row);
+ virtual bool Apply(const Table::Ptr& table, const Value& row) override;
private:
Filter::Ptr m_Inner;
OrFilter(void);
- virtual bool Apply(const Table::Ptr& table, const Value& row);
+ virtual 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(void) const;
- virtual String GetPrefix(void) const;
+ virtual String GetName(void) const override;
+ virtual String GetPrefix(void) const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn);
+ virtual 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(void) const;
- virtual String GetPrefix(void) const;
+ virtual String GetName(void) const override;
+ virtual String GetPrefix(void) const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn);
+ virtual 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(void) const;
- virtual String GetPrefix(void) const;
+ virtual String GetName(void) const override;
+ virtual String GetPrefix(void) const override;
- void UpdateLogEntries(const Dictionary::Ptr& log_entry_attrs, int line_count, int lineno, const AddRowFunction& addRowFn);
+ void UpdateLogEntries(const Dictionary::Ptr& log_entry_attrs, int line_count, int lineno, const AddRowFunction& addRowFn) override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn);
+ virtual 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(void) const;
- virtual String GetPrefix(void) const;
+ virtual String GetName(void) const override;
+ virtual String GetPrefix(void) const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn);
+ virtual 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);
- virtual double GetResult(void) const;
+ virtual void Apply(const Table::Ptr& table, const Value& row) override;
+ virtual double GetResult(void) const override;
private:
double m_StdSum;
SumAggregator(const String& attr);
- virtual void Apply(const Table::Ptr& table, const Value& row);
- virtual double GetResult(void) const;
+ virtual void Apply(const Table::Ptr& table, const Value& row) override;
+ virtual double GetResult(void) const override;
private:
double m_Sum;
static void AddColumns(Table *table, const String& prefix = String(),
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
- virtual String GetName(void) const;
- virtual String GetPrefix(void) const;
+ virtual String GetName(void) const override;
+ virtual String GetPrefix(void) const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn);
+ virtual 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(void) const;
- virtual String GetPrefix(void) const;
+ virtual String GetName(void) const override;
+ virtual String GetPrefix(void) const override;
protected:
- virtual void FetchRows(const AddRowFunction& addRowFn);
+ virtual void FetchRows(const AddRowFunction& addRowFn) override;
static Value NameAccessor(const Value& row);
static Value ParentAccessor(const Value& row);
public:
DECLARE_PTR_TYPEDEFS(ActionsHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response);
+ virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response) override;
};
}
public:
DECLARE_PTR_TYPEDEFS(ConfigFilesHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response);
+ virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response) override;
private:
void HandleGet(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response);
public:
DECLARE_PTR_TYPEDEFS(ConfigModulesHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response);
+ virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response) override;
private:
void HandleGet(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response);
public:
DECLARE_PTR_TYPEDEFS(ConfigStagesHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response);
+ virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response) override;
private:
void HandleGet(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response);
public:
DECLARE_PTR_TYPEDEFS(CreateObjectHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response);
+ virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response) override;
};
}
public:
DECLARE_PTR_TYPEDEFS(DeleteObjectHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response);
+ virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response) override;
};
}
public:
DECLARE_PTR_TYPEDEFS(ModifyObjectHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response);
+ virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response) override;
};
}
public:
DECLARE_PTR_TYPEDEFS(StatusQueryHandler);
- virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response);
+ virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response) override;
};
}