00001 // Copyright CERN 2012 - Developed in collaboration with GSI 00002 00003 #ifndef FESA_TYPE_DEFITION_CLASS_H_ 00004 #define FESA_TYPE_DEFITION_CLASS_H_ 00005 00006 #include <fesa-core/Core/FesaDefs.h> 00007 00008 namespace fesa 00009 { 00010 00015 struct DeviceRelation_DataType 00016 { 00017 char device_[DEVICE_NAME_LENGTH]; 00018 char property_[PROPERTY_NAME_LENGTH]; 00019 }; 00020 00025 struct HostHardwareAddress_DataType 00026 { 00027 char host_[FEC_NAME_LENGTH]; 00028 }; 00029 00034 struct HostPortHardwareAddress_DataType 00035 { 00036 char host_[FEC_NAME_LENGTH]; 00037 int32_t port_; 00038 }; 00039 00044 struct LogicalHardwareAddress_DataType 00045 { 00049 int32_t lun_; 00050 00054 int32_t ch_; 00055 00059 char moduleType_[HW_MODULE_TYPE_LENGTH]; 00060 }; 00061 00062 enum FaultSeverity 00063 { 00064 OK, WARNING, ERROR 00065 }; 00066 00071 struct FaultField_DataType 00072 { 00073 public: 00074 00078 bool state_; 00079 00083 int64_t timestamp_; 00084 00088 int32_t errorCode_; 00089 }; 00090 00091 } // fesa 00092 00093 #endif // FESA_TYPE_DEFITION_CLASS_H_