Audacity 3.2.0
|
#include <PluginIPCUtils.h>
Public Member Functions | |
bool | IsValid () const noexcept |
bool | HasError () const noexcept |
const wxString & | GetErrorMessage () const noexcept |
void | Add (PluginDescriptor &&desc) |
void | SetError (const wxString &msg) |
const std::vector< PluginDescriptor > & | GetDescriptors () const noexcept |
bool | HandleXMLTag (const std::string_view &tag, const AttributesList &attrs) override |
void | HandleXMLEndTag (const std::string_view &) override |
XMLTagHandler * | HandleXMLChild (const std::string_view &tag) override |
void | WriteXML (XMLWriter &writer) const |
Public Member Functions inherited from XMLTagHandler | |
XMLTagHandler () | |
virtual | ~XMLTagHandler () |
virtual bool | HandleXMLTag (const std::string_view &tag, const AttributesList &attrs)=0 |
virtual void | HandleXMLEndTag (const std::string_view &WXUNUSED(tag)) |
virtual void | HandleXMLContent (const std::string_view &WXUNUSED(content)) |
virtual XMLTagHandler * | HandleXMLChild (const std::string_view &tag)=0 |
void | ReadXMLEndTag (const char *tag) |
void | ReadXMLContent (const char *s, int len) |
XMLTagHandler * | ReadXMLChild (const char *tag) |
Private Attributes | |
std::vector< PluginDescriptor > | mDescriptors |
wxString | mErrorMessage |
bool | mHasError {false} |
Host uses this structure to build a response and store it into xml form before sending to the other side. Main application uses this structure to restore response from the xml document received as a message
Definition at line 59 of file PluginIPCUtils.h.
void PluginValidationResult::Add | ( | PluginDescriptor && | desc | ) |
Definition at line 102 of file PluginIPCUtils.cpp.
References anonymous_namespace{ExportPCM.cpp}::desc, and mDescriptors.
Referenced by anonymous_namespace{PluginHost.cpp}::Discover().
|
noexcept |
Definition at line 113 of file PluginIPCUtils.cpp.
References mDescriptors.
|
noexcept |
|
overridevirtual |
Implements XMLTagHandler.
Definition at line 135 of file PluginIPCUtils.cpp.
References mDescriptors, and PluginDescriptor::XMLNodeName.
|
override |
Definition at line 133 of file PluginIPCUtils.cpp.
|
overridevirtual |
Implements XMLTagHandler.
Definition at line 118 of file PluginIPCUtils.cpp.
References anonymous_namespace{PluginIPCUtils.cpp}::AttrErrorMessage, key, mErrorMessage, mHasError, and anonymous_namespace{PluginIPCUtils.cpp}::NodeError.
|
noexcept |
Definition at line 92 of file PluginIPCUtils.cpp.
References mHasError.
|
noexcept |
Result is valid if error flag was not set and contains at least one plugin descriptor.
Definition at line 87 of file PluginIPCUtils.cpp.
References mDescriptors, and mHasError.
void PluginValidationResult::SetError | ( | const wxString & | msg | ) |
Definition at line 107 of file PluginIPCUtils.cpp.
References mErrorMessage, and mHasError.
Referenced by anonymous_namespace{PluginHost.cpp}::Discover(), AsyncPluginValidator::Impl::OnDisconnect(), and PluginHost::Serve().
void PluginValidationResult::WriteXML | ( | XMLWriter & | writer | ) | const |
Definition at line 145 of file PluginIPCUtils.cpp.
References anonymous_namespace{PluginIPCUtils.cpp}::AttrErrorMessage, anonymous_namespace{ExportPCM.cpp}::desc, XMLWriter::EndTag(), mDescriptors, mErrorMessage, mHasError, anonymous_namespace{PluginIPCUtils.cpp}::NodeError, anonymous_namespace{PluginIPCUtils.cpp}::NodePlugin, XMLWriter::StartTag(), and XMLWriter::WriteAttr().
Referenced by PluginHost::Serve().
|
private |
Definition at line 61 of file PluginIPCUtils.h.
Referenced by Add(), GetDescriptors(), HandleXMLChild(), IsValid(), and WriteXML().
|
private |
Definition at line 62 of file PluginIPCUtils.h.
Referenced by GetErrorMessage(), HandleXMLTag(), SetError(), and WriteXML().
|
private |
Definition at line 63 of file PluginIPCUtils.h.
Referenced by HandleXMLTag(), HasError(), IsValid(), SetError(), and WriteXML().