摘要:
typedef union{stepper_motor_tstepper;pseudo_motor_tpseudo;motor_tmotor;ion_chamber_tion;shutter_tshutter;hardware_host_thardware;run_values_trunvalues;runs_status_truns;operation_t operation;encoder_t encoder;string_t string;object_t object;generic_device_tgeneric;dummy_device_tdummy;} beamline_dev. 阅读全文
摘要:
#include <iostream>#include <utility>#include <string>using namespace std;int main () { pair <string,double> product1 ("tomatoes",3.25); pair <string,double> product2; pair <string,double> product3; product2.first = "lightbulbs"; // type of fir 阅读全文
摘要:
DcsConfig gDcssConfig\\XosConfig config;XosConfig defConfig;\\#ifndef __Include_XosConfig_h__#define __Include_XosConfig_h__#include "xos.h"#include <string>#include <map>#include <list>typedef std::list<std::string> StrList;typedef std::multimap<std::string, std 阅读全文
摘要:
class DcsConfig#ifndef __Include_DcsConfig_h__#define __Include_DcsConfig_h__#include "XosConfig.h"#include <string>class DcsConfig{public:DcsConfig();DcsConfig(const std::string& dcs_dir, const std::string& config_root);virtual ~DcsConfig();void setConfigDir(const std::strin 阅读全文
摘要:
typedef unsigned long xos_hash_data_t;typedef struct {char*key;xos_hash_data_t data;} xos_hash_entry_t;typedef unsigned int xos_size_t;typedef struct {xos_size_tslotCount;xos_size_tusedSlots;xos_hash_entry_t *slot;xos_boolean_t isValid;} xos_hash_t;struct __log_manager {xos_hash_t loggers;};struct _ 阅读全文