//+---------------------------------------------------------------------------- // // method : ProsilicaCCDClass::set_default_property // // description: Set default property (class and device) for wizard. // For each property, add to wizard property name and description // If default value has been set, add it to wizard property and // store it in a DbDatum. // //----------------------------------------------------------------------------- void ProsilicaCCDClass::set_default_property() { string prop_name; string prop_desc; string prop_def; vector<string> vect_data; // Set Default Class Properties // Set Default Device Properties prop_name = "DetectorIP"; prop_desc = "Ip Address of the Detector."; prop_def = "127.0.0.1"; vect_data.clear(); vect_data.push_back("127.0.0.1"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); }
//+---------------------------------------------------------------------------- // // method : Andor3Class::set_default_property // // description: Set default property (class and device) for wizard. // For each property, add to wizard property name and description // If default value has been set, add it to wizard property and // store it in a DbDatum. // //----------------------------------------------------------------------------- void Andor3Class::set_default_property() { string prop_name; string prop_desc; string prop_def; vector<string> vect_data; // Set Default Class Properties // Set Default Device Properties prop_name = "BitFlowPath"; prop_desc = "Path of the bitflow"; prop_def = "/no/path/defined"; vect_data.clear(); vect_data.push_back("/no/path/defined"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "CameraNumber"; prop_desc = "Camera Number for the Andor driver (ie: DeviceIndex)"; prop_def = "0"; vect_data.clear(); vect_data.push_back("0"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); }
//+---------------------------------------------------------------------------- // // method : SimulatorCCDClass::set_default_property // // description: Set default property (class and device) for wizard. // For each property, add to wizard property name and description // If default value has been set, add it to wizard property and // store it in a DbDatum. // //----------------------------------------------------------------------------- void SimulatorCCDClass::set_default_property() { string prop_name; string prop_desc; string prop_def; vector<string> vect_data; // Set Default Class Properties // Set Default Device Properties prop_name = "MemorizedFillType"; prop_desc = "memorize the value of the fillType attribute."; prop_def = "GAUSS"; vect_data.clear(); vect_data.push_back("GAUSS"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "MemorizedGrowFactor"; prop_desc = ""; prop_def = "1.0"; vect_data.clear(); vect_data.push_back("1.0"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); }
//-------------------------------------------------------- void ModbusControlRfqAndBuncherClass::set_default_property() { string prop_name; string prop_desc; string prop_def; vector<string> vect_data; // Set Default Class Properties // Set Default device Properties prop_name = "ModbusDevice"; prop_desc = "Modbus Tango device for this device in format `domain/family/member`"; prop_def = ""; vect_data.clear(); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); }
//-------------------------------------------------------- void PowerSupply_701CClass::set_default_property() { string prop_name; string prop_desc; string prop_def; vector<string> vect_data; // Set Default Class Properties // Set Default device Properties prop_name = "Socket"; prop_desc = "Tango device name in format ``domain/family/member``"; prop_def = ""; vect_data.clear(); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); }
//+---------------------------------------------------------------------------- // // method : BaslerCCDClass::set_default_property // // description: Set default property (class and device) for wizard. // For each property, add to wizard property name and description // If default value has been set, add it to wizard property and // store it in a DbDatum. // //----------------------------------------------------------------------------- void BaslerCCDClass::set_default_property() { string prop_name; string prop_desc; string prop_def; vector<string> vect_data; // Set Default Class Properties // Set Default Device Properties prop_name = "DetectorIP"; prop_desc = "Ip Address of the Detector."; prop_def = "127.0.0.1"; vect_data.clear(); vect_data.push_back("127.0.0.1"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "DetectorTimeout"; prop_desc = "During acquisition, this is the time before declaring that is no available image returned by detector. (in ms)"; prop_def = "1000"; vect_data.clear(); vect_data.push_back("1000"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "DetectorPacketSize"; prop_desc = "Sets the packet size in bytes for the selected steam channel of the Transport Layer.<br>"; prop_def = "1500"; vect_data.clear(); vect_data.push_back("1500"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); }
//+---------------------------------------------------------------------------- // // method : PilatusPixelDetectorClass::set_default_property // // description: Set default property (class and device) for wizard. // For each property, add to wizard property name and description // If default value has been set, add it to wizard property and // store it in a DbDatum. // //----------------------------------------------------------------------------- void PilatusPixelDetectorClass::set_default_property() { string prop_name; string prop_desc; string prop_def; vector<string> vect_data; // Set Default Class Properties // Set Default Device Properties prop_name = "DetectorPort"; prop_desc = "Socket Port of the Detector."; prop_def = "6666"; vect_data.clear(); vect_data.push_back("6666"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "DetectorIP"; prop_desc = "Socket Port of the Detector ."; prop_def = "-1"; vect_data.clear(); vect_data.push_back("-1"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "UseReader"; prop_desc = "Enable/Disable monitoring of directory receiving image files.\n[default = enable reading directory]"; prop_def = "true"; vect_data.clear(); vect_data.push_back("true"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); }
//+---------------------------------------------------------------------------- // // method : PrincetonCCDClass::set_default_property // // description: Set default property (class and device) for wizard. // For each property, add to wizard property name and description // If default value has been set, add it to wizard property and // store it in a DbDatum. // //----------------------------------------------------------------------------- void PrincetonCCDClass::set_default_property() { string prop_name; string prop_desc; string prop_def; vector<string> vect_data; // Set Default Class Properties // Set Default Device Properties prop_name = "DetectorNum"; prop_desc = "Detector Number."; prop_def = ""; vect_data.clear(); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "MemorizedInternalAcquisitionMode"; prop_desc = "Memorize/Define the internalAcquisitionMode attribute at Init device<br>\nAvailables values :<br>\n- STANDARD<br>\n- FOCUS<br>"; prop_def = "STANDARD"; vect_data.clear(); vect_data.push_back("STANDARD"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "MemorizedShutterMode"; prop_desc = "Memorize/Define the SHUTTERMode attribute at Init device<br>\nAvailables values :<br>\n- OPEN_NEVER<br>\n- OPEN_PRE_EXPOSURE<br>\n- OPEN_NO_CHANGE<br>"; prop_def = "OPEN_NO_CHANGE"; vect_data.clear(); vect_data.push_back("OPEN_NO_CHANGE"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); }
//-------------------------------------------------------- void BaseDeviceClass::set_default_property() { string prop_name; string prop_desc; string prop_def; vector<string> vect_data; // Set Default Class Properties // Set Default device Properties prop_name = "configFile"; prop_desc = "XML configuration file"; prop_def = ""; vect_data.clear(); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "syslog_level"; prop_desc = "Log level used for logging to syslog (OFF,TRACE,DEBUG,INFO,WARN,ERROR,FATAL)"; prop_def = "OFF"; vect_data.clear(); vect_data.push_back("OFF"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "syslog_facility"; prop_desc = "LOG_USER: A miscellaneous user process\nLOG_MAIL: Mail\nLOG_DAEMON: A miscellaneous system daemon\nLOG_AUTH: Security (authorization)\nLOG_SYSLOG: Syslog\nLOG_LPR: Central printer\nLOG_NEWS: Network news (e.g. Usenet)\nLOG_UUCP: UUCP\nLOG_CRON: Cron and At\nLOG_AUTHPRIV: Private security (authorization)\nLOG_FTP: Ftp server\nLOG_LOCAL0,1,2,3,4,5,6,7: Locally defined\n\n``auth``: LOG_AUTH\n``authpriv``: LOG_AUTHPRIV\n``cron``: LOG_CRON \n``daemon``: LOG_DAEMON\n``ftp``: LOG_FTP\n``kern``: LOG_KERN\n``lpr``: LOG_LPR\n``mail``: LOG_MAIL\n``mark``: INTERNAL_MARK\n``news``: LOG_NEWS\n``security``: LOG_AUTH,\n``syslog``: LOG_SYSLOG\n``user``: LOG_USER\n``uucp``: LOG_UUCP\n``local0``: LOG_LOCAL0\n``local1``: LOG_LOCAL1 \n``local2``: LOG_LOCAL2 \n``local3``: LOG_LOCAL3 \n``local4``: LOG_LOCAL4 \n``local5``: LOG_LOCAL5 \n``local6``: LOG_LOCAL6 \n``local7``: LOG_LOCAL7"; prop_def = "local6"; vect_data.clear(); vect_data.push_back("local6"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); }
//-------------------------------------------------------- void WebSocketDSClass::set_default_property() { string prop_name; string prop_desc; string prop_def; vector<string> vect_data; // Set Default Class Properties // Set Default device Properties prop_name = "Mode"; prop_desc = "Device operating mode\n\nser - Server mode\nser_cli_all - Server mode. Client mode (You can use all devices)\nser_cli_all_ro - Server mode. Client mode (You can use all devices only for reading attributes and pipes)\nser_cli_ali - Server mode. Client mode. (You can use devices that have an alias.)\nser_cli_ali_ro - Server mode. Client mode. (You can use devices that have an alias only for reading attributes and pipes)\ncli_all - Client mode (You can use all devices)\ncli_all_ro - Client mode (You can use all devices only for reading attributes and pipes)\ncli_ali - Client mode. (You can use devices that have an alias.)\ncli_ali_ro - Client mode. (You can use devices that have an alias only for reading attributes and pipes)"; prop_def = "ser"; vect_data.clear(); vect_data.push_back("ser"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "Port"; prop_desc = "Using port of WebSocket"; prop_def = ""; vect_data.clear(); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "DeviceServer"; prop_desc = "Using DeviceServer name \nor a device name pattern (e.g. domain_* / family/ member_*) for communicate with a group of devices.\nUsed only if any server mode is selected."; prop_def = ""; vect_data.clear(); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "Attributes"; prop_desc = "A list of device attributes you want to read, if reading all attributes is required, add __all_attrs__ (not operational in group mode); \nUsed only if any server mode is selected."; prop_def = ""; vect_data.clear(); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "Commands"; prop_desc = "a list of device commands you want to execute through WS\nUsed only if any server mode is selected."; prop_def = ""; vect_data.clear(); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "PipeName"; prop_desc = "Name of DevicePipe for reading. [0]\nWhen using GROUP, the DevicePipe name must be the same for all devices.\nIf you want to set properties for specific attributes, add them in the format ``NameAttr;property``\nUsed only if any server mode is selected."; prop_def = ""; vect_data.clear(); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "Secure"; prop_desc = "Shall we use SSL encryption?\nset true, for secure wss connection, otherwise false;"; prop_def = "false"; vect_data.clear(); vect_data.push_back("false"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "Certificate"; prop_desc = "full path to the certificate in use (if Secure = true)\nexample: /etc/ssl/certs/ssl-cert-snakeoil.pem"; prop_def = "/etc/ssl/certs/server.crt"; vect_data.clear(); vect_data.push_back("/etc/ssl/certs/server.crt"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "Key"; prop_desc = "full path to the file in use with Private key (if Secure = true)\nExample: /etc/ssl/private/ssl-cert-snakeoil.key"; prop_def = "/etc/ssl/private/server.key"; vect_data.clear(); vect_data.push_back("/etc/ssl/private/server.key"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "AuthDS"; prop_desc = "Tango web authentication device server (TangoWebAuth ) name.\nresponsible for user authentication in case of commands execution"; prop_def = "auth/web/1"; vect_data.clear(); vect_data.push_back("auth/web/1"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "MaxNumberOfConnections"; prop_desc = "maximum number of connections. If the limit is reached, further connections will be lost with 400 Bad Request error. If 0 is set, the number of connections will be unlimited."; prop_def = "0"; vect_data.clear(); vect_data.push_back("0"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "MaximumBufferSize"; prop_desc = "maximum buffer size for each connection, KiB. The Default value is 1000. Possible values range from1 to 10000 (if setting a value outside the range, the default value will be set). If exceeding the set maximum buffer size, the connection will be lost by the server;"; prop_def = "1000"; vect_data.clear(); vect_data.push_back("1000"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "ResetTimestampDifference"; prop_desc = "The difference in timestamps (seconds) after which a WS server is reset. The difference is counted by CheckPoll method between update timestamp in UpdateData method and current timestamp. Minimum value is 60. \nDefault and MinValue = 60\nUsed only if any server mode is selected"; prop_def = "60"; vect_data.clear(); vect_data.push_back("60"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "Options"; prop_desc = "Options for device.\nFormat of options:\n nameOfOption or nameOfOption=value"; prop_def = ""; vect_data.clear(); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "list_subscr_event_change"; prop_desc = "List of subscriptions to change events"; prop_def = ""; vect_data.clear(); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "list_subscr_event_periodic"; prop_desc = "List of subscriptions to periodic events"; prop_def = ""; vect_data.clear(); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "list_subscr_event_user"; prop_desc = "List of subscriptions to user events"; prop_def = ""; vect_data.clear(); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "list_subscr_event_archive"; prop_desc = "List of subscriptions to archive events"; prop_def = ""; vect_data.clear(); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); }
//+---------------------------------------------------------------------------- // // method : GalilSlitClass::set_default_property // // description: Set default property (class and device) for wizard. // For each property, add to wizard property name and description // If default value has been set, add it to wizard property and // store it in a DbDatum. // //----------------------------------------------------------------------------- void GalilSlitClass::set_default_property() { string prop_name; string prop_desc; string prop_def; vector<string> vect_data; // Set Default Class Properties // Set Default Device Properties prop_name = "InsideUpAxis"; prop_desc = "letter of the Inside ( Up ) axis, from A to H\nThis axis is the master axis\n"; prop_def = "A"; vect_data.clear(); vect_data.push_back("A"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "OutsideDownAxis"; prop_desc = "Outside ( Down ) axis of the slit, A to H\nThis axis is the slave axis\n"; prop_def = "B"; vect_data.clear(); vect_data.push_back("B"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "InvertPositionDirection"; prop_desc = "use this property to invert the default direction of position of the slit\ntrue : the position is inverted :\ne.g. standard position of -3mm will be displayed as +3mm\npositive direction of position of a vertical slit will be up rather than down\n\n"; prop_def = ""; if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "IsGeared"; prop_desc = "set to true if you want to run your Slit as Geared Master/Slave\nthe Slave blage follows tigthly ( same speed, etc...) the master blade\nYou can change a position with constant gap, change of gap and keep position at the same place\non the other hand blade positions can derivate when mechanics is not correct\n(ther is no position correction on the slave\n\nset to false, Slit is run as 2 separate motors without gearing.\nPositions are corrected on both axes, so gap and position are more accurate\nThe speeds can be different on the 2 axes.\nIt is possible to control motors through their own devices while the Slit device is running\n(no gear -> no DISABLE state)\n"; prop_def = "true"; vect_data.clear(); vect_data.push_back("true"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "IsGapPosition"; prop_desc = "set it to true if your slit has 1 motor for gap / 1 motor for position\nif true IsGeared has no effect"; prop_def = "false"; vect_data.clear(); vect_data.push_back("false"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); }
//+---------------------------------------------------------------------------- // // method : LimaDetectorClass::set_default_property // // description: Set default property (class and device) for wizard. // For each property, add to wizard property name and description // If default value has been set, add it to wizard property and // store it in a DbDatum. // //----------------------------------------------------------------------------- void LimaDetectorClass::set_default_property() { string prop_name; string prop_desc; string prop_def; vector<string> vect_data; // Set Default Class Properties // Set Default Device Properties prop_name = "DetectorDescription"; prop_desc = "Detector user-defined text to identify the engine."; prop_def = "This is my Simulator"; vect_data.clear(); vect_data.push_back("This is my Simulator"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "DetectorType"; prop_desc = "Define the type of the connected Detector .<BR>\nAvailables types :<BR>\n- AdscCCD<BR>\n- AviexCCD<br>\n- BaslerCCD<BR>\n- Eiger<br>\n- Hamamatsu<br>\n- MarCCD<BR>\n- Pco<BR>\n- PerkinElmer<BR>\n- PilatusPixelDetector<BR>\n- ProsilicaCCD<BR>\n- PrincetonCCD<BR>\n- SimulatorCCD<BR>\n- XpadPixelDetector<BR>\n\n"; prop_def = "SimulatorCCD"; vect_data.clear(); vect_data.push_back("SimulatorCCD"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "DetectorPixelDepth"; prop_desc = "Define the pixel depth of the detector : <br>\nAvailables values : <br>\n- 8 <br>\n- 16<br>\n- 32<br>\n- 32S<br>"; prop_def = "16"; vect_data.clear(); vect_data.push_back("16"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "SpecialDisplayType"; prop_desc = "Special type of the image attribute for display and saving (NOT_USED, FLOAT, ...)"; prop_def = "NOT_USED"; vect_data.clear(); vect_data.push_back("NOT_USED"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "DetectorVideoMode"; prop_desc = "Define the format of video stream: <br>\nAvailables values :<br>\n- NONE<BR>\n- Y8 <BR>\n- Y16<BR>\n- Y32<BR>\n- Y64<BR>\n- RGB555<BR>\n- RGB565<BR>\n- RGB24<BR>\n- RGB32<BR>\n- BGR24<BR>\n- BGR32<BR>\n- BAYER_RG8<BR>\n- BAYER_RG16<BR>\n- I420<BR>\n- YUV411<BR>\n- YUV422<BR>\n- YUV444<BR>\n<br>\nNota:<br>\nThis property is usefull only for detectors having video capabilities.<BR>\nOtherwise, use only NONE."; prop_def = "NONE"; vect_data.clear(); vect_data.push_back("NONE"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "ImageSource"; prop_desc = "Choose the source of Data given to the image attribute :<br>\n- VIDEO : use ctVideo->LastImage()\n- ACQUISITION : use ctControl->ReadImage()"; prop_def = "VIDEO"; vect_data.clear(); vect_data.push_back("VIDEO"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "FileFormat"; prop_desc = "Define the format of image files :<BR>\nAvailables values :<br>\n- EDF<BR>\n- NXS<BR>\n- RAW<BR>\n"; prop_def = "NXS"; vect_data.clear(); vect_data.push_back("NXS"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "FilePrefix"; prop_desc = "Define the prefix used for the image files name."; prop_def = "Image"; vect_data.clear(); vect_data.push_back("Image"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "FileIndexPattern"; prop_desc = "Define the pattern of the index used for image files names.<br>\n<br>\nNota :<br>\n%04d mean that file name index will be end with exactly 4 digits filled by '0' if necessary .<br>\n"; prop_def = "%06d"; vect_data.clear(); vect_data.push_back("%06d"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "FileTargetPath"; prop_desc = "Define the Path where Files will be generated, only when savingFile is checked.\n\n"; prop_def = "./data"; vect_data.clear(); vect_data.push_back("./data"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "FileNbFrames"; prop_desc = ""; prop_def = "1"; vect_data.clear(); vect_data.push_back("1"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "FileWriteMode"; prop_desc = "Available only for Nexus format : Fix the SetWriteMode(). <br>\nAvailable values :<br>\n- IMMEDIATE<br>\n- SYNCHRONOUS<br>\n- DELAYED"; prop_def = "IMMEDIATE"; vect_data.clear(); vect_data.push_back("IMMEDIATE"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "FileMemoryMode"; prop_desc = "Available only for Nexus format : Fix the SetDataItemMemoryMode().<br>\nAvailable values :<br>\n- COPY<br>\n- NO_COPY"; prop_def = "COPY"; vect_data.clear(); vect_data.push_back("COPY"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "BufferMaxMemoryPercent"; prop_desc = "Define the Percent of Memory reserved by buffer control (from 0 to 100 %)."; prop_def = "70"; vect_data.clear(); vect_data.push_back("70"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "UsePrepareCmd"; prop_desc = ""; prop_def = "false"; vect_data.clear(); vect_data.push_back("false"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "DebugModules"; prop_desc = "Define modules that we need to have some debug traces.<BR>\nAvailables values :<BR>\n- None<BR>\n- Hardware<BR>\n- Control<BR>\n- Common<BR>\n- Camera<BR>"; prop_def = "Hardware\nControl\nCommon\nCamera"; vect_data.clear(); vect_data.push_back("Hardware"); vect_data.push_back("Control"); vect_data.push_back("Common"); vect_data.push_back("Camera"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "DebugLevels"; prop_desc = "Define Lima verbose level of traces.<BR>\nAvailables values :<BR>\n- Fatal<BR>\n- Error<BR>\n- Warning<BR>\n- Trace<BR>\n- Funct<BR>\n- Param<BR>\n- Return<BR>\n- Always<BR>"; prop_def = "Fatal\nError\nWarning"; vect_data.clear(); vect_data.push_back("Fatal"); vect_data.push_back("Error"); vect_data.push_back("Warning"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "DebugFormats"; prop_desc = "Define Lima traces format.<BR>\nAvailables values :<BR>\n- DateTime<BR>\n- Thread<BR>\n- Module<BR>\n- Obj<BR>\n- Funct<BR>\n- FileLine<BR>"; prop_def = "DateTime\nModule\nType\nFunct"; vect_data.clear(); vect_data.push_back("DateTime"); vect_data.push_back("Module"); vect_data.push_back("Type"); vect_data.push_back("Funct"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "MemorizedRoi"; prop_desc = "Memorize/Define the Region of Interest of the Acquisition: <br>\norigin X<br>\norigin Y<br>\nWidth<br>\nHeight<br>\n<br>\nNota:<br>\nif any roi value is <0, then we consider all detector area as Roi."; prop_def = "-1\n-1\n-1\n-1"; vect_data.clear(); vect_data.push_back("-1"); vect_data.push_back("-1"); vect_data.push_back("-1"); vect_data.push_back("-1"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "MemorizedBinningH"; prop_desc = "Memorize/Define the Binning Horizontal value of the Acquisition<br>\n"; prop_def = "1"; vect_data.clear(); vect_data.push_back("1"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "MemorizedBinningV"; prop_desc = "Memorize/Define the Binning Vertical value of the Acquisition<br>"; prop_def = "1"; vect_data.clear(); vect_data.push_back("1"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "MemorizedAcquisitionMode"; prop_desc = "Memorize/Define the acquisitionMode attribute at Init device<br>\nAvailables values :<br>\n- SINGLE<br>\n- ACCUMULATION<br>"; prop_def = "SINGLE"; vect_data.clear(); vect_data.push_back("SINGLE"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "MemorizedTriggerMode"; prop_desc = "Memorize/Define the triggerMode attribute at Init device<br>\nAvailables values :<br>\n- INTERNAL_SINGLE<br>\n- EXTERNAL_SINGLE<br>\n- EXTERNAL_MULTI<br>\n- EXTERNAL_GATE<br>\n- INTERNAL_MULTI<br>\n- EXTERNAL_START_STOP<br>\n- EXTERNAL_READOUT<br>"; prop_def = "INTERNAL_SINGLE"; vect_data.clear(); vect_data.push_back("INTERNAL_SINGLE"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "MemorizedShutterMode"; prop_desc = "Memorize/Define the shutterMode attribute at Init device<br>\nAvailables values :<br>\n- MANUAL<br>\n- AUTO_FRAME<br>\n- AUTO_SEQUENCE"; prop_def = "MANUAL"; vect_data.clear(); vect_data.push_back("MANUAL"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "MemorizedShutterOpenTime"; prop_desc = "Memorize/Define the shutterOpenTime attribute at Init device<br>"; prop_def = "1000"; vect_data.clear(); vect_data.push_back("1000"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "MemorizedShutterCloseTime"; prop_desc = "Memorize/Define the shutterCloseTime attribute at Init device<br>"; prop_def = "1000"; vect_data.clear(); vect_data.push_back("1000"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "MemorizedExposureTime"; prop_desc = "Memorize/Define the exposureTime attribute at Init device<br>\n"; prop_def = "1000"; vect_data.clear(); vect_data.push_back("1000"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "MemorizedExposureAccTime"; prop_desc = "Memorize/Define the exposureAccTime attribute at Init device<br>"; prop_def = "100"; vect_data.clear(); vect_data.push_back("100"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "MemorizedLatencyTime"; prop_desc = "Memorize/Define the latencyTime attribute at Init device<br>"; prop_def = "0"; vect_data.clear(); vect_data.push_back("0"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "MemorizedNbFrames"; prop_desc = "Memorize/Define the nbFrames attribute at Init device<br>"; prop_def = "1"; vect_data.clear(); vect_data.push_back("1"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "MemorizedFileGeneration"; prop_desc = "Memorize/Define the fileGeneration attribute at Init device<br>"; prop_def = "false"; vect_data.clear(); vect_data.push_back("false"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "MemorizedFileNbFrames"; prop_desc = ""; prop_def = ""; vect_data.clear(); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); }
//+---------------------------------------------------------------------------- // // method : RoiCountersClass::set_default_property // // description: Set default property (class and device) for wizard. // For each property, add to wizard property name and description // If default value has been set, add it to wizard property and // store it in a DbDatum. // //----------------------------------------------------------------------------- void RoiCountersClass::set_default_property() { string prop_name; string prop_desc; string prop_def; vector<string> vect_data; // Set Default Class Properties // Set Default Device Properties prop_name = "NbRoiCounters"; prop_desc = "Fix the number of Region Of Interest.<br>\nStatistical calculations (sum, average, std, min, max) will be made for these regions of interest."; prop_def = "2"; vect_data.clear(); vect_data.push_back("2"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "__x"; prop_desc = "For each Region of Interest . (Origin X)"; prop_def = "0\n0"; vect_data.clear(); vect_data.push_back("0"); vect_data.push_back("0"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "__y"; prop_desc = "For each Region of Interest . (Origin Y)"; prop_def = "0\n0"; vect_data.clear(); vect_data.push_back("0"); vect_data.push_back("0"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "__width"; prop_desc = "For each Region of Interest . (Width)"; prop_def = "10\n10"; vect_data.clear(); vect_data.push_back("10"); vect_data.push_back("10"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "__height"; prop_desc = "For each Region of Interest . (Height)"; prop_def = "10\n10"; vect_data.clear(); vect_data.push_back("10"); vect_data.push_back("10"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); }
//-------------------------------------------------------- void LMCLoggerClass::set_default_property() { string prop_name; string prop_desc; string prop_def; vector<string> vect_data; // Set Default Class Properties // Set Default device Properties prop_name = "syslog_facility"; prop_desc = "LOG_USER: A miscellaneous user process\nLOG_MAIL: Mail\nLOG_DAEMON: A miscellaneous system daemon\nLOG_AUTH: Security (authorization)\nLOG_SYSLOG: Syslog\nLOG_LPR: Central printer\nLOG_NEWS: Network news (e.g. Usenet)\nLOG_UUCP: UUCP\nLOG_CRON: Cron and At\nLOG_AUTHPRIV: Private security (authorization)\nLOG_FTP: Ftp server\nLOG_LOCAL0,1,2,3,4,5,6,7: Locally defined\n\n``auth``: LOG_AUTH\n``authpriv``: LOG_AUTHPRIV\n``cron``: LOG_CRON \n``daemon``: LOG_DAEMON\n``ftp``: LOG_FTP\n``kern``: LOG_KERN\n``lpr``: LOG_LPR\n``mail``: LOG_MAIL\n``mark``: INTERNAL_MARK\n``news``: LOG_NEWS\n``security``: LOG_AUTH,\n``syslog``: LOG_SYSLOG\n``user``: LOG_USER\n``uucp``: LOG_UUCP\n``local0``: LOG_LOCAL0\n``local1``: LOG_LOCAL1 \n``local2``: LOG_LOCAL2 \n``local3``: LOG_LOCAL3 \n``local4``: LOG_LOCAL4 \n``local5``: LOG_LOCAL5 \n``local6``: LOG_LOCAL6 \n``local7``: LOG_LOCAL7"; prop_def = "local6"; vect_data.clear(); vect_data.push_back("local6"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "default_syslog_level"; prop_desc = "Default log level to be used at startup for logging to syslog"; prop_def = "OFF"; vect_data.clear(); vect_data.push_back("OFF"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "startup_enable_logfw"; prop_desc = "Enable log forwarding"; prop_def = "1"; vect_data.clear(); vect_data.push_back("1"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "syslog_logger"; prop_desc = "SysLog library to be used:\n\n1=LOG4CXX\n2=BOOST"; prop_def = "1"; vect_data.clear(); vect_data.push_back("1"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); }
//+---------------------------------------------------------------------------- // // method : MarCCDClass::set_default_property // // description: Set default property (class and device) for wizard. // For each property, add to wizard property name and description // If default value has been set, add it to wizard property and // store it in a DbDatum. // //----------------------------------------------------------------------------- void MarCCDClass::set_default_property() { string prop_name; string prop_desc; string prop_def; vector<string> vect_data; // Set Default Class Properties // Set Default Device Properties prop_name = "DetectorIP"; prop_desc = "Detector IP address"; prop_def = ""; vect_data.clear(); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "DetectorPort"; prop_desc = "Detector port number"; prop_def = ""; vect_data.clear(); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "DetectorTargetPath"; prop_desc = "Detector generated image(s) path."; prop_def = "/no/path/defined/"; vect_data.clear(); vect_data.push_back("/no/path/defined/"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "ReaderTimeout"; prop_desc = "During acquisition, this is the time before declaring that is no available image returned by detector. (in ms)"; prop_def = "10000"; vect_data.clear(); vect_data.push_back("10000"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "MemorizedWaitFileOnDiskTime"; prop_desc = ""; prop_def = "0"; vect_data.clear(); vect_data.push_back("0"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); }
//-------------------------------------------------------- void MerlinClass::set_default_property() { string prop_name; string prop_desc; string prop_def; vector<string> vect_data; // Set Default Class Properties // Set Default device Properties prop_name = "HostName"; prop_desc = "The name of the Merlin PC"; prop_def = ""; vect_data.clear(); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "CmdPort"; prop_desc = "The Merlin command port"; prop_def = "6341"; vect_data.clear(); vect_data.push_back("6341"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "DataPort"; prop_desc = "The Merlin data port"; prop_def = "6342"; vect_data.clear(); vect_data.push_back("6342"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "Chips"; prop_desc = "Nos of Medipix chips"; prop_def = "4"; vect_data.clear(); vect_data.push_back("4"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "ImageWidth"; prop_desc = "The width of Merlin detector head in pixels"; prop_def = "512"; vect_data.clear(); vect_data.push_back("512"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "ImageHeight"; prop_desc = "The height of the Merlin detector head in Pixels"; prop_def = "512"; vect_data.clear(); vect_data.push_back("512"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); prop_name = "Simulate"; prop_desc = "Simulate the Merlin commands."; prop_def = "false"; vect_data.clear(); vect_data.push_back("false"); if (prop_def.length()>0) { Tango::DbDatum data(prop_name); data << vect_data ; dev_def_prop.push_back(data); add_wiz_dev_prop(prop_name, prop_desc, prop_def); } else add_wiz_dev_prop(prop_name, prop_desc); }