28 #ifndef CASADBUS_IMAGERCONTROL_H_
29 #define CASADBUS_IMAGERCONTROL_H_
45 #ifdef INTERACTIVE_ITERATION
46 #include <casadbus/interfaces/SynthImager.proxy.h>
53 #ifdef INTERACTIVE_ITERATION
54 :
private edu::nrao::casa::SynthesisImager_proxy,
55 public DBus::IntrospectableProxy,
56 public DBus::ObjectProxy
60 static std::string
name( ) {
return "SynthesisImager"; }
61 static std::string
connection_name( ) {
return "edu.nrao.casa.SynthesisImager_001"; }
62 static std::string
interface_name( ) {
return "edu.nrao.casa.SynthesisImager"; }
63 static std::string
object_path( ) {
return "/casa/synthesis/imager"; }
69 #ifdef INTERACTIVE_ITERATION
70 return edu::nrao::casa::SynthesisImager_proxy::incrementController( );
76 #ifdef INTERACTIVE_ITERATION
77 return edu::nrao::casa::SynthesisImager_proxy::decrementController( );
84 #ifdef INTERACTIVE_ITERATION
85 edu::nrao::casa::SynthesisImager_proxy::changePauseFlag( state );
92 #ifdef INTERACTIVE_ITERATION
93 edu::nrao::casa::SynthesisImager_proxy::changeStopFlag( state );
106 #ifdef INTERACTIVE_ITERATION
107 return edu::nrao::casa::SynthesisImager_proxy::getDescription( );
109 return std::string( );
114 #ifdef INTERACTIVE_ITERATION
115 return dbus::toStdMap( edu::nrao::casa::SynthesisImager_proxy::getDetails( ) );
117 return std::map<std::string,dbus::variant>( );
122 #ifdef INTERACTIVE_ITERATION
123 edu::nrao::casa::SynthesisImager_proxy::controlUpdate(
dbus::fromStdMap(newParams) );
145 void sendInteractionComplete() {
160 std::map<std::string, DBus::Variant> map=
fromRecord(record);
162 interactionComplete();
169 if (interactiveIRQ) {
170 interactiveIRQ =
false;
171 if (serviceInteractiveFlag) {
172 sendInteractionComplete();
174 if (exitOnInteractiveFlag) {
180 return exitCondition;
185 const bool serviceInteractiveFlag;
186 const bool exitOnInteractiveFlag;
187 const bool checkDetailsFlag;
void interactionRequired(const bool &)
slots that are required for signals generated by SynthImager_adaptor...
void detailUpdate(const std::map< std::string, DBus::Variant > &)
void changePauseFlag(const bool &state)
void controlUpdate(const std::map< std::string, dbus::variant > &newParams)
std::map< std::string, dbus::variant > getDetails()
bool incrementController()
void summaryUpdate(const DBus::Variant &)
std::map< std::string, variant > toStdMap(const std::map< std::string, DBus::Variant > &src)
The identification of a record field.
void changeStopFlag(const bool &state)
static std::string object_path()
std::string getDescription()
A hierarchical collection of named fields of various types.
::casac::record * fromRecord(const casacore::Record &)
See note in implementation about possible memory leak.
static std::string interface_name()
ImagerControl(const std::string &connection_name_=connection_name(), const std::string &object_path_=object_path())
std::map< std::string, DBus::Variant > fromStdMap(const std::map< std::string, variant > &src)
static std::string name()
static std::string connection_name()
void define(const RecordFieldId &, Bool value)
Define a value for the given field.
bool decrementController()