Add protected non-virtual destructor in generated classes

This commit is contained in:
sangelovic
2019-06-10 22:54:16 +02:00
parent 7049d00a78
commit ff944c9e95
14 changed files with 51 additions and 6 deletions

View File

@ -46,6 +46,8 @@ namespace sdbus {
{
}
~Peer_proxy() = default;
public:
void Ping()
{
@ -74,6 +76,8 @@ namespace sdbus {
{
}
~Introspectable_proxy() = default;
public:
std::string Introspect()
{
@ -106,6 +110,8 @@ namespace sdbus {
});
}
~Properties_proxy() = default;
virtual void onPropertiesChanged( const std::string& interfaceName
, const std::map<std::string, sdbus::Variant>& changedProperties
, const std::vector<std::string>& invalidatedProperties ) = 0;
@ -160,6 +166,8 @@ namespace sdbus {
});
}
~ObjectManager_proxy() = default;
virtual void onInterfacesAdded( const sdbus::ObjectPath& objectPath
, const std::map<std::string, std::map<std::string, sdbus::Variant>>& interfacesAndProperties) = 0;
virtual void onInterfacesRemoved( const sdbus::ObjectPath& objectPath
@ -192,6 +200,8 @@ namespace sdbus {
{
}
~Properties_adaptor() = default;
public:
void emitPropertiesChangedSignal(const std::string& interfaceName, const std::vector<std::string>& properties)
{
@ -219,6 +229,8 @@ namespace sdbus {
object_.addObjectManager();
}
~ObjectManager_adaptor() = default;
public:
void emitInterfacesAddedSignal()
{