X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fpbd%2Fpbd%2Fcommand.h;h=4547b779fb4e736300305017012e6246dfa66ba9;hb=130df9c2b195e82ba223ef8541802d775e947610;hp=c6c3c8d3fd21b02d818be71e00fbdc4e150aa990;hpb=f4401c59284258c6aa56707da64e3da32756329f;p=ardour.git diff --git a/libs/pbd/pbd/command.h b/libs/pbd/pbd/command.h index c6c3c8d3fd..4547b779fb 100644 --- a/libs/pbd/pbd/command.h +++ b/libs/pbd/pbd/command.h @@ -24,10 +24,11 @@ #include +#include "pbd/libpbd_visibility.h" #include "pbd/signals.h" #include "pbd/statefuldestructible.h" -class Command : public PBD::StatefulDestructible, public PBD::ScopedConnectionList +class LIBPBD_API Command : public PBD::StatefulDestructible, public PBD::ScopedConnectionList { public: virtual ~Command() { /* NOTE: derived classes must call drop_references() */ } @@ -43,6 +44,10 @@ public: virtual XMLNode &get_state(); virtual int set_state(const XMLNode&, int /*version*/) { /* noop */ return 0; } + virtual bool empty () const { + return false; + } + protected: Command() {} Command(const std::string& name) : _name(name) {}