internal CimQualifierOfMethodParameter(ClassHandle classHandle, int methodIndex, int parameterName, int index) { this.classHandle = classHandle; this.qualifierIndex = index; this.parameterName = parameterName; this.methodIndex = methodIndex; }
public static CBRNSensorsEntityTypes GetEntityType(ClassHandle classHandle) { if (EntityGroundVehicle.IsTypeOf(classHandle)) { return CBRNSensorsEntityTypes.EntityGroundVehicle; } if (EntityEquipmentSensorCBRN.IsTypeOf(classHandle)) { return CBRNSensorsEntityTypes.EntityEquipmentSensorCBRN; } if (EntityEquipmentSensorCBRNAP2Ce.IsTypeOf(classHandle)) { return CBRNSensorsEntityTypes.EntityEquipmentSensorCBRNAP2Ce; } if (EntityEquipmentSensorCBRNI27.IsTypeOf(classHandle)) { return CBRNSensorsEntityTypes.EntityEquipmentSensorCBRNI27; } if (EntityEquipmentSensorCBRNI28.IsTypeOf(classHandle)) { return CBRNSensorsEntityTypes.EntityEquipmentSensorCBRNI28; } if (EntityEquipmentSensorCBRNLCD.IsTypeOf(classHandle)) { return CBRNSensorsEntityTypes.EntityEquipmentSensorCBRNLCD; } if (EntityEquipmentSensorCBRNRAID.IsTypeOf(classHandle)) { return CBRNSensorsEntityTypes.EntityEquipmentSensorCBRNRAID; } if (EntityEquipmentSensorCBRNRapid.IsTypeOf(classHandle)) { return CBRNSensorsEntityTypes.EntityEquipmentSensorCBRNRapid; } if (CBRNI27Control.IsTypeOf(classHandle)) { return CBRNSensorsEntityTypes.CBRNI27Control; } if (CBRNI28Control.IsTypeOf(classHandle)) { return CBRNSensorsEntityTypes.CBRNI28Control; } if (CBRNLCDControl.IsTypeOf(classHandle)) { return CBRNSensorsEntityTypes.CBRNLCDControl; } if (CBRNRAIDControl.IsTypeOf(classHandle)) { return CBRNSensorsEntityTypes.CBRNRAIDControl; } return CBRNSensorsEntityTypes.Unknown; }
private void Dispose(bool disposing) { if (!this._disposed) { if (disposing) { this._classHandle.Dispose(); this._classHandle = null; } this._disposed = true; return; } else { return; } }
internal override MiResult NativeMoveNext(OperationHandle operationHandle, out CimClass currentItem, out bool moreResults, out MiResult operationResult, out string errorMessage, out InstanceHandle errorDetailsHandle) { ClassHandle classHandle = null; currentItem = null; MiResult @class = OperationMethods.GetClass(operationHandle, out classHandle, out moreResults, out operationResult, out errorMessage, out errorDetailsHandle); if (classHandle != null && !classHandle.IsInvalid) { if (!base.ShortenLifetimeOfResults) { classHandle = classHandle.Clone(); } currentItem = new CimClass(classHandle); } return(@class); }
public static CBRNSensorsEntityTypes GetEntityType(ClassHandle classHandle) { if (Entity.IsTypeOf(classHandle)) { return CBRNSensorsEntityTypes.Entity; } if (EntityGroundVehicle.IsTypeOf(classHandle)) { return CBRNSensorsEntityTypes.EntityGroundVehicle; } if (EntityEquipment.IsTypeOf(classHandle)) { return CBRNSensorsEntityTypes.EntityEquipment; } if (EntityEquipmentSensor.IsTypeOf(classHandle)) { return CBRNSensorsEntityTypes.EntityEquipmentSensor; } if (EntityEquipmentSensorCBRN.IsTypeOf(classHandle)) { return CBRNSensorsEntityTypes.EntityEquipmentSensorCBRN; } if (EntityEquipmentSensorCBRNAP2Ce.IsTypeOf(classHandle)) { return CBRNSensorsEntityTypes.EntityEquipmentSensorCBRNAP2Ce; } if (EntityEquipmentSensorCBRNLCD.IsTypeOf(classHandle)) { return CBRNSensorsEntityTypes.EntityEquipmentSensorCBRNLCD; } if (CBRNLCDControl.IsTypeOf(classHandle)) { return CBRNSensorsEntityTypes.CBRNLCDControl; } return CBRNSensorsEntityTypes.Unknown; }
public static bool IsTypeOf(ClassHandle hClass) { return (hClass == EntityGroundVehicle.Class); }
public static bool Initialize(INETWISEStringCache cache) { if (cache == null) { return false; } if (!IsInitialized()) { // Generate the class handle uint classId = 0; cache.AddString(ClassName, ref classId); _classHandle = classId; lock (_nameIdIndex) { _nameIdIndex.Add("Command", Attributes.Command); _nameIdIndex.Add("ExternalId", Attributes.ExternalId); lock (_idHandleIndex) { if (_nameIdIndex.Count > 0 && _idHandleIndex.Count == 0) { foreach (KeyValuePair<string, Attributes> item in _nameIdIndex.FirstToSecond) { uint attrId = 0; cache.AddString(item.Key, ref attrId); _idHandleIndex.Add(item.Value, new AttributeHandle(attrId)); } } } } } return true; }
new(NativeHandle_objc_msgSend(ClassHandle, SharedApplicationSelector));
public static bool Initialize(INETWISEStringCache cache) { if (cache == null) { return false; } if (!IsInitialized()) { // Generate the class handle uint classId = 0; cache.AddString(ClassName, ref classId); _classHandle = classId; lock (_nameIdIndex) { _nameIdIndex.Add("Description", Attributes.Description); _nameIdIndex.Add("EquipmentType", Attributes.EquipmentType); _nameIdIndex.Add("Name", Attributes.Name); _nameIdIndex.Add("Parent", Attributes.Parent); _nameIdIndex.Add("RelativeLocation", Attributes.RelativeLocation); lock (_idHandleIndex) { if (_nameIdIndex.Count > 0 && _idHandleIndex.Count == 0) { foreach (KeyValuePair<string, Attributes> item in _nameIdIndex.FirstToSecond) { uint attrId = 0; cache.AddString(item.Key, ref attrId); _idHandleIndex.Add(item.Value, new AttributeHandle(attrId)); } } } } } return true; }
internal CimMethodDeclarationCollection(ClassHandle classHandle) { this.classHandle = classHandle; }
internal CimMethodParameterDeclarationOfMethod(ClassHandle classHandle, int index, int name) { this.classHandle = classHandle; this.index = index; this.parameterName = name; }
public static bool Initialize(INETWISEStringCache cache) { if (cache == null) { return false; } if (!IsInitialized()) { // Generate the class handle uint classId = 0; cache.AddString(ClassName, ref classId); _classHandle = classId; lock (_nameIdIndex) { _nameIdIndex.Add("CurrentGroundSpeed", Attributes.CurrentGroundSpeed); _nameIdIndex.Add("EntityType", Attributes.EntityType); _nameIdIndex.Add("FixedTurnRadius", Attributes.FixedTurnRadius); _nameIdIndex.Add("Formation", Attributes.Formation); _nameIdIndex.Add("FormationMaster", Attributes.FormationMaster); _nameIdIndex.Add("FormationPosition", Attributes.FormationPosition); _nameIdIndex.Add("GroundSpeed", Attributes.GroundSpeed); _nameIdIndex.Add("Health", Attributes.Health); _nameIdIndex.Add("HorizontalAcceleration", Attributes.HorizontalAcceleration); _nameIdIndex.Add("HorizontalSpeed", Attributes.HorizontalSpeed); _nameIdIndex.Add("IsOnGround", Attributes.IsOnGround); _nameIdIndex.Add("Length", Attributes.Length); _nameIdIndex.Add("MaxAcceleration", Attributes.MaxAcceleration); _nameIdIndex.Add("MaxDeceleration", Attributes.MaxDeceleration); _nameIdIndex.Add("MaxHorizontalSpeed", Attributes.MaxHorizontalSpeed); _nameIdIndex.Add("MaxTurnSpeed", Attributes.MaxTurnSpeed); _nameIdIndex.Add("Model3D", Attributes.Model3D); _nameIdIndex.Add("Mover", Attributes.Mover); _nameIdIndex.Add("Name", Attributes.Name); _nameIdIndex.Add("Orientation", Attributes.Orientation); _nameIdIndex.Add("Position", Attributes.Position); _nameIdIndex.Add("PresentedOrientation", Attributes.PresentedOrientation); _nameIdIndex.Add("PresentedPosition", Attributes.PresentedPosition); _nameIdIndex.Add("PresentedVelocity", Attributes.PresentedVelocity); _nameIdIndex.Add("RadarCrossSection", Attributes.RadarCrossSection); _nameIdIndex.Add("Radius", Attributes.Radius); _nameIdIndex.Add("SensorVisible", Attributes.SensorVisible); _nameIdIndex.Add("TargetHeading", Attributes.TargetHeading); _nameIdIndex.Add("TargetHorizontalSpeed", Attributes.TargetHorizontalSpeed); _nameIdIndex.Add("Template3DModels", Attributes.Template3DModels); _nameIdIndex.Add("TemplatedObject", Attributes.TemplatedObject); _nameIdIndex.Add("TransponderCode", Attributes.TransponderCode); _nameIdIndex.Add("TurnDirection", Attributes.TurnDirection); _nameIdIndex.Add("TurnRadius", Attributes.TurnRadius); _nameIdIndex.Add("UpdateRate", Attributes.UpdateRate); _nameIdIndex.Add("UseAnticollision", Attributes.UseAnticollision); _nameIdIndex.Add("VerticalAcceleration", Attributes.VerticalAcceleration); _nameIdIndex.Add("VerticalSpeed", Attributes.VerticalSpeed); _nameIdIndex.Add("timestamp", Attributes.timestamp); lock (_idHandleIndex) { if (_nameIdIndex.Count > 0 && _idHandleIndex.Count == 0) { foreach (KeyValuePair<string, Attributes> item in _nameIdIndex.FirstToSecond) { uint attrId = 0; cache.AddString(item.Key, ref attrId); _idHandleIndex.Add(item.Value, new AttributeHandle(attrId)); } } } } } return true; }
internal CimQualifierOfProperty(ClassHandle classHandle, string propertyName, int index) { this.classHandle = classHandle; this.index = index; this.propertyName = propertyName; }
protected override WISE_RESULT OnSendEvent(DateTime timeStamp, DatabaseHandle hDatabase, EventHandle hEvent, ClassHandle hClass, TransactionHandle hTransaction) { WISE_RESULT result = WISEError.WISE_OK; // Call base class implementation result = base.OnSendEvent(timeStamp, hDatabase, hEvent, hClass, hTransaction); WISEError.CheckCallFailedEx(result); try { // // TODO: Send event on driver communication interface. // // This method typically needs to perform the following steps; // 1. Identify the type of event. // 2. Based on the event type, extract event attributes. // 3. Fill event attribute values into the protocol container associated with the event. // 4. Send the event on the underlying protocol. // #region Sample code: Check event type //ClassHandle hTestEventClass = ClassHandle.Invalid; //// Get handle corresponding to class "TEST_EVENT" (this can be done once and then cached) //result = this.WISETypeInfo.GetWISEClassHandle(hDatabase, "TEST_EVENT", ref hTestEventClass); //WISEError.CheckCallFailedEx(result); //if (hClass == hTestEventClass) //{ // #region Sample code: Access TEST_EVENT attributes // string stringAttributeValue = ""; // AttributeHandle hAttr = AttributeHandle.Invalid; // result = this.Sink.GetEventAttributeHandle(hDatabase, hEvent, "TEST_STRING", ref hAttr); // WISEError.CheckCallFailedEx(result); // result = this.Sink.GetEventAttributeValue(hDatabase, hEvent, hAttr, ref stringAttributeValue); // WISEError.CheckCallFailedEx(result); // #endregion //} #endregion } catch (WISEException ex) { result = ex.Error.ErrorCode; } return result; }
internal CimMethodDeclarationOfClass(ClassHandle classHandle, int index) { this.classHandle = classHandle; this.index = index; }
protected override WISE_RESULT OnUpdateAttribute(DateTime timeStamp, DatabaseHandle hDatabase, ObjectHandle hObject, ClassHandle hClass, AttributeHandle hAttribute, object value, AttributeQualityCode quality, TransactionHandle hTransaction) { WISE_RESULT result = WISEError.WISE_OK; // Call base class implementation result = base.OnUpdateAttribute(timeStamp, hDatabase, hObject, hClass, hAttribute, value, quality, hTransaction); WISEError.CheckCallFailedEx(result); //string myValue = string.Empty; //AttributeHandle myAttributeHandle = AttributeHandle.Invalid; //this.WISE.GetAttributeHandle(hDatabase, hObject, "SomeAttribute", ref myAttributeHandle); //this.WISE.GetAttributeValue(hDatabase, hObject, myAttributeHandle, ref myValue); //global::CBRNSensors.EntityEquipmentSensorCBRNLCD stateObject = new global::CBRNSensors.EntityEquipmentSensorCBRNLCD(); //stateObject.CreateInstance(this.WISE, hDatabase); //stateObject.SensorState = //stateObject.AddToDatabase(hDatabase); return result; }
internal CimClassPropertyOfClass(ClassHandle classHandle, int index) { this.classHandle = classHandle; this.index = index; }
new(IntPtr_objc_msgSend(ClassHandle, SharedApplicationSelector));
internal CimClassPropertiesCollection(ClassHandle classHandle) { this.classHandle = classHandle; }
internal void ClassCallback(OperationCallbackProcessingContext callbackProcessingContext, OperationHandle operationHandle, ClassHandle ClassHandle, bool moreResults, MiResult operationResult, string errorMessage, InstanceHandle errorDetailsHandle) { CimClass cimClass = null; if (ClassHandle != null && !ClassHandle.IsInvalid) { if (!this._shortenLifetimeOfResults) { ClassHandle = ClassHandle.Clone(); } cimClass = new CimClass(ClassHandle); } //using (cimClass) { if (!this._shortenLifetimeOfResults || cimClass == null) { base.ProcessNativeCallback(callbackProcessingContext, cimClass, moreResults, operationResult, errorMessage, errorDetailsHandle); } } }
internal CimMethodParameterQualifierCollection(ClassHandle classHandle, int methodIndex, int parameterName) { this.classHandle = classHandle; this.methodIndex = methodIndex; this.parameterName = parameterName; }
public static bool IsTypeOf(ClassHandle hClass) { return (hClass == EntityEquipment.Class); }
internal CimMethodParameterDeclarationCollection(ClassHandle classHandle, int index) { this.classHandle = classHandle; this.methodIndex = index; }
public CimClass DeserializeClass(byte[] serializedData, ref int offset, CimClass parentClass, string computerName, string namespaceName) { ClassHandle classHandle = this.DeserializeClassHandle(serializedData, ref offset, parentClass, computerName, namespaceName); return(new CimClass(classHandle)); }
public static bool IsTypeOf(ClassHandle hClass) { return (hClass == EntityEquipmentSensorCBRNAP2Ce.Class); }
public static bool IsTypeOf(ClassHandle hClass) { return (hClass == CBRNLCDControl.Class); }
internal CimClassQualifierCollection(ClassHandle classHandle) { this.classHandle = classHandle; }
public static bool Initialize(INETWISEStringCache cache) { if (cache == null) { return false; } if (!IsInitialized()) { // Generate the class handle uint classId = 0; cache.AddString(ClassName, ref classId); _classHandle = classId; lock (_nameIdIndex) { _nameIdIndex.Add("Active", Attributes.Active); _nameIdIndex.Add("Airline", Attributes.Airline); _nameIdIndex.Add("AltitudeLockResumeAltitude", Attributes.AltitudeLockResumeAltitude); _nameIdIndex.Add("AltitudeLockStatus", Attributes.AltitudeLockStatus); _nameIdIndex.Add("AltitudeRequested", Attributes.AltitudeRequested); _nameIdIndex.Add("AngleSpeed", Attributes.AngleSpeed); _nameIdIndex.Add("ApproachDist", Attributes.ApproachDist); _nameIdIndex.Add("ApproachSpeed", Attributes.ApproachSpeed); _nameIdIndex.Add("AssignedIAS", Attributes.AssignedIAS); _nameIdIndex.Add("AssignedSpeedMach", Attributes.AssignedSpeedMach); _nameIdIndex.Add("AsternLineCurrDist", Attributes.AsternLineCurrDist); _nameIdIndex.Add("AsternLineMaster", Attributes.AsternLineMaster); _nameIdIndex.Add("AsternLineReqDist", Attributes.AsternLineReqDist); _nameIdIndex.Add("AsternLineSlave", Attributes.AsternLineSlave); _nameIdIndex.Add("AviantionRules", Attributes.AviantionRules); _nameIdIndex.Add("ClearedToContinue", Attributes.ClearedToContinue); _nameIdIndex.Add("ClimbPerformance", Attributes.ClimbPerformance); _nameIdIndex.Add("ConflictAlert", Attributes.ConflictAlert); _nameIdIndex.Add("Conflicts", Attributes.Conflicts); _nameIdIndex.Add("Controller", Attributes.Controller); _nameIdIndex.Add("CorrelatedCallsign", Attributes.CorrelatedCallsign); _nameIdIndex.Add("CurrentGroundSpeed", Attributes.CurrentGroundSpeed); _nameIdIndex.Add("CurrentOperation", Attributes.CurrentOperation); _nameIdIndex.Add("Departure", Attributes.Departure); _nameIdIndex.Add("DescentPerformance", Attributes.DescentPerformance); _nameIdIndex.Add("DescentSpeedRatio", Attributes.DescentSpeedRatio); _nameIdIndex.Add("DestFix", Attributes.DestFix); _nameIdIndex.Add("Destination", Attributes.Destination); _nameIdIndex.Add("DestinationETA", Attributes.DestinationETA); _nameIdIndex.Add("DismissRequested", Attributes.DismissRequested); _nameIdIndex.Add("EngineName", Attributes.EngineName); _nameIdIndex.Add("EngineOn", Attributes.EngineOn); _nameIdIndex.Add("EntityMode", Attributes.EntityMode); _nameIdIndex.Add("EntityModeArgs", Attributes.EntityModeArgs); _nameIdIndex.Add("EntityType", Attributes.EntityType); _nameIdIndex.Add("Extension", Attributes.Extension); _nameIdIndex.Add("FinalApproachDist", Attributes.FinalApproachDist); _nameIdIndex.Add("FinalApproachSpeed", Attributes.FinalApproachSpeed); _nameIdIndex.Add("FixedTurnRadius", Attributes.FixedTurnRadius); _nameIdIndex.Add("Formation", Attributes.Formation); _nameIdIndex.Add("FormationMaster", Attributes.FormationMaster); _nameIdIndex.Add("FormationPosition", Attributes.FormationPosition); _nameIdIndex.Add("Frequency", Attributes.Frequency); _nameIdIndex.Add("GPID", Attributes.GPID); _nameIdIndex.Add("GroundAcceleration", Attributes.GroundAcceleration); _nameIdIndex.Add("GroundRetardation", Attributes.GroundRetardation); _nameIdIndex.Add("GroundSpeed", Attributes.GroundSpeed); _nameIdIndex.Add("HeadingRequested", Attributes.HeadingRequested); _nameIdIndex.Add("Health", Attributes.Health); _nameIdIndex.Add("HorizontalAcceleration", Attributes.HorizontalAcceleration); _nameIdIndex.Add("HorizontalSpeed", Attributes.HorizontalSpeed); _nameIdIndex.Add("ICAOCallsign", Attributes.ICAOCallsign); _nameIdIndex.Add("ICAOTelephoneCallsign", Attributes.ICAOTelephoneCallsign); _nameIdIndex.Add("Id", Attributes.Id); _nameIdIndex.Add("Infotext", Attributes.Infotext); _nameIdIndex.Add("IsGarbage", Attributes.IsGarbage); _nameIdIndex.Add("IsHelicopter", Attributes.IsHelicopter); _nameIdIndex.Add("IsOnGround", Attributes.IsOnGround); _nameIdIndex.Add("LandingDist", Attributes.LandingDist); _nameIdIndex.Add("LandingGearDist", Attributes.LandingGearDist); _nameIdIndex.Add("LandingGearName", Attributes.LandingGearName); _nameIdIndex.Add("LandingGearOut", Attributes.LandingGearOut); _nameIdIndex.Add("LandingLightName", Attributes.LandingLightName); _nameIdIndex.Add("LandingLightsOn", Attributes.LandingLightsOn); _nameIdIndex.Add("LandingSpeed", Attributes.LandingSpeed); _nameIdIndex.Add("LandingType", Attributes.LandingType); _nameIdIndex.Add("LayerDependentParameters", Attributes.LayerDependentParameters); _nameIdIndex.Add("Length", Attributes.Length); _nameIdIndex.Add("MapSymbol", Attributes.MapSymbol); _nameIdIndex.Add("March", Attributes.March); _nameIdIndex.Add("MaxAcceleration", Attributes.MaxAcceleration); _nameIdIndex.Add("MaxAltitude", Attributes.MaxAltitude); _nameIdIndex.Add("MaxBankAngle", Attributes.MaxBankAngle); _nameIdIndex.Add("MaxClimbSpeed", Attributes.MaxClimbSpeed); _nameIdIndex.Add("MaxDeceleration", Attributes.MaxDeceleration); _nameIdIndex.Add("MaxDescentSpeed", Attributes.MaxDescentSpeed); _nameIdIndex.Add("MaxHorizontalSpeed", Attributes.MaxHorizontalSpeed); _nameIdIndex.Add("MaxTurnSpeed", Attributes.MaxTurnSpeed); _nameIdIndex.Add("MilitaryAffiliation", Attributes.MilitaryAffiliation); _nameIdIndex.Add("MinimumApproachSpeed", Attributes.MinimumApproachSpeed); _nameIdIndex.Add("MinimumCleanSpeed", Attributes.MinimumCleanSpeed); _nameIdIndex.Add("MissedRoute", Attributes.MissedRoute); _nameIdIndex.Add("ModeC", Attributes.ModeC); _nameIdIndex.Add("Model3D", Attributes.Model3D); _nameIdIndex.Add("Mover", Attributes.Mover); _nameIdIndex.Add("NPBreakType", Attributes.NPBreakType); _nameIdIndex.Add("NPClose", Attributes.NPClose); _nameIdIndex.Add("Name", Attributes.Name); _nameIdIndex.Add("NavLightName", Attributes.NavLightName); _nameIdIndex.Add("NavigationalLightsOn", Attributes.NavigationalLightsOn); _nameIdIndex.Add("NormalClimbSpeed", Attributes.NormalClimbSpeed); _nameIdIndex.Add("NormalDescentSpeed", Attributes.NormalDescentSpeed); _nameIdIndex.Add("OrbitStatus", Attributes.OrbitStatus); _nameIdIndex.Add("Orientation", Attributes.Orientation); _nameIdIndex.Add("OverridedClimbSpeed", Attributes.OverridedClimbSpeed); _nameIdIndex.Add("OverridedClimbSpeedFactor", Attributes.OverridedClimbSpeedFactor); _nameIdIndex.Add("OverridedDescentSpeed", Attributes.OverridedDescentSpeed); _nameIdIndex.Add("OverridedDescentSpeedFactor", Attributes.OverridedDescentSpeedFactor); _nameIdIndex.Add("Overshoot", Attributes.Overshoot); _nameIdIndex.Add("Parent", Attributes.Parent); _nameIdIndex.Add("PlaneIndication", Attributes.PlaneIndication); _nameIdIndex.Add("Position", Attributes.Position); _nameIdIndex.Add("PositionKind", Attributes.PositionKind); _nameIdIndex.Add("PresentedOrientation", Attributes.PresentedOrientation); _nameIdIndex.Add("PresentedPosition", Attributes.PresentedPosition); _nameIdIndex.Add("PresentedVelocity", Attributes.PresentedVelocity); _nameIdIndex.Add("QNH", Attributes.QNH); _nameIdIndex.Add("RadarCrossSection", Attributes.RadarCrossSection); _nameIdIndex.Add("RadioCallname", Attributes.RadioCallname); _nameIdIndex.Add("Radius", Attributes.Radius); _nameIdIndex.Add("ReferencePoint", Attributes.ReferencePoint); _nameIdIndex.Add("ResetSpinn", Attributes.ResetSpinn); _nameIdIndex.Add("Reversed", Attributes.Reversed); _nameIdIndex.Add("RolePilot", Attributes.RolePilot); _nameIdIndex.Add("RoleTrainee", Attributes.RoleTrainee); _nameIdIndex.Add("RouteName", Attributes.RouteName); _nameIdIndex.Add("Routes", Attributes.Routes); _nameIdIndex.Add("Runway", Attributes.Runway); _nameIdIndex.Add("SensorVisible", Attributes.SensorVisible); _nameIdIndex.Add("Setting_Bottom_Layer_Climb_Speed", Attributes.Setting_Bottom_Layer_Climb_Speed); _nameIdIndex.Add("Setting_Lift_Off_Height", Attributes.Setting_Lift_Off_Height); _nameIdIndex.Add("Setting_Lift_Off_Speed", Attributes.Setting_Lift_Off_Speed); _nameIdIndex.Add("Setting_MaxBankingAngle", Attributes.Setting_MaxBankingAngle); _nameIdIndex.Add("Setting_Max_ClimbSpeed", Attributes.Setting_Max_ClimbSpeed); _nameIdIndex.Add("Setting_Max_DescentSpeed", Attributes.Setting_Max_DescentSpeed); _nameIdIndex.Add("Setting_NormalBankingAngle", Attributes.Setting_NormalBankingAngle); _nameIdIndex.Add("Setting_Normal_ClimbSpeed", Attributes.Setting_Normal_ClimbSpeed); _nameIdIndex.Add("Setting_Normal_DescentSpeed", Attributes.Setting_Normal_DescentSpeed); _nameIdIndex.Add("Setting_Normal_Speed_Ground", Attributes.Setting_Normal_Speed_Ground); _nameIdIndex.Add("ShadowName", Attributes.ShadowName); _nameIdIndex.Add("SlaveIndex", Attributes.SlaveIndex); _nameIdIndex.Add("SlowDownRetardation", Attributes.SlowDownRetardation); _nameIdIndex.Add("SlowDownSpeed", Attributes.SlowDownSpeed); _nameIdIndex.Add("Smoke", Attributes.Smoke); _nameIdIndex.Add("SpeedPerformance", Attributes.SpeedPerformance); _nameIdIndex.Add("SpinAngleSpeed", Attributes.SpinAngleSpeed); _nameIdIndex.Add("SquawkActive", Attributes.SquawkActive); _nameIdIndex.Add("TakeoffSpeed", Attributes.TakeoffSpeed); _nameIdIndex.Add("TargetAltitude", Attributes.TargetAltitude); _nameIdIndex.Add("TargetClimbSpeed", Attributes.TargetClimbSpeed); _nameIdIndex.Add("TargetDescendSpeed", Attributes.TargetDescendSpeed); _nameIdIndex.Add("TargetHeading", Attributes.TargetHeading); _nameIdIndex.Add("TargetHorizontalSpeed", Attributes.TargetHorizontalSpeed); _nameIdIndex.Add("TargetHorizontalSpeedType", Attributes.TargetHorizontalSpeedType); _nameIdIndex.Add("Template3DModels", Attributes.Template3DModels); _nameIdIndex.Add("TemplatedObject", Attributes.TemplatedObject); _nameIdIndex.Add("TemporaryMaxSpeed", Attributes.TemporaryMaxSpeed); _nameIdIndex.Add("TouchAndGo", Attributes.TouchAndGo); _nameIdIndex.Add("TransponderCode", Attributes.TransponderCode); _nameIdIndex.Add("TransponderState", Attributes.TransponderState); _nameIdIndex.Add("TurbulenceCategory", Attributes.TurbulenceCategory); _nameIdIndex.Add("TurnDirection", Attributes.TurnDirection); _nameIdIndex.Add("TurnRadius", Attributes.TurnRadius); _nameIdIndex.Add("TypeDescription", Attributes.TypeDescription); _nameIdIndex.Add("Unit", Attributes.Unit); _nameIdIndex.Add("UpdateRate", Attributes.UpdateRate); _nameIdIndex.Add("UseAnticollision", Attributes.UseAnticollision); _nameIdIndex.Add("UseCorrelated", Attributes.UseCorrelated); _nameIdIndex.Add("VerticalAcceleration", Attributes.VerticalAcceleration); _nameIdIndex.Add("VerticalSpeed", Attributes.VerticalSpeed); _nameIdIndex.Add("VirtualPilot", Attributes.VirtualPilot); _nameIdIndex.Add("timestamp", Attributes.timestamp); lock (_idHandleIndex) { if (_nameIdIndex.Count > 0 && _idHandleIndex.Count == 0) { foreach (KeyValuePair<string, Attributes> item in _nameIdIndex.FirstToSecond) { uint attrId = 0; cache.AddString(item.Key, ref attrId); _idHandleIndex.Add(item.Value, new AttributeHandle(attrId)); } } } } } return true; }
internal CimPropertyQualifierCollection(ClassHandle classHandle, string name) { this.classHandle = classHandle; this.name = name; }
protected override WISE_RESULT OnRemoveObject(DateTime timeStamp, DatabaseHandle hDatabase, ObjectHandle hObject, ClassHandle hClass, TransactionHandle hTransaction) { WISE_RESULT result = WISEError.WISE_OK; // Call base class implementation result = base.OnRemoveObject(timeStamp, hDatabase, hObject, hClass, hTransaction); WISEError.CheckCallFailedEx(result); try { DatabaseType dbtype = DatabaseType.Unknown; result = this.Sink.GetDatabaseType(hDatabase, ref dbtype); if (dbtype == DatabaseType.Application) { // // TODO: Remove object on driver communication interface. // } } catch (WISEException ex) { result = ex.Error.ErrorCode; } return result; }
internal CimMethodQualifierDeclarationOfMethod(ClassHandle classHandle, int methodIndex, int qualifierIndex) { this.classHandle = classHandle; this.qualifierIndex = qualifierIndex; this.methodIndex = methodIndex; }
protected override WISE_RESULT OnAddObject(DateTime timeStamp, DatabaseHandle hDatabase, ObjectHandle hObject, ClassHandle hClass, string strObjectName, TransactionHandle hTransaction) { WISE_RESULT result = WISEError.WISE_OK; // Call base class implementation result = base.OnAddObject(timeStamp, hDatabase, hObject, hClass, strObjectName, hTransaction); WISEError.CheckCallFailedEx(result); try { DatabaseType dbtype = DatabaseType.Unknown; result = this.Sink.GetDatabaseType(hDatabase, ref dbtype); WISEError.CheckCallFailedEx(result); if (dbtype == DatabaseType.Application) { // Only process application database objects by default //if (global::CBRNSensors.EntityEquipment.IsTypeOf(this.WISE, hDatabase, hObject)) //{ // global::CBRNSensors.EntityEquipment myObject = new global::CBRNSensors.EntityEquipment(); //} // // TODO: Add object on driver communication interface. // // This method typically works in either of two ways. // If the underlying protocol requires us to send all object attributes // as a part of the object creation message; // 1. Identify the type of object. // 2. Based on the object type, extract its attributes. // 3. Fill object attribute values into the protocol container associated with object creation. // 4. the creation message on the underlying protocol. // // If the underlying protocol separates the create message from the initial attribute // update message; // 1. Fill object information into the protocol container associated with object creation. // 2. Send the creation message on the underlying protocol. // #region Sample code: Check object type //ClassHandle hTestObjectClass = ClassHandle.Invalid; //// Get handle corresponding to class "TEST_OBJECT" (this can be done once and then cached) //result = this.WISETypeInfo.GetWISEClassHandle(hDatabase, "TEST_OBJECT", ref hTestObjectClass); //WISEError.CheckCallFailedEx(result); //if (hClass == hTestObjectClass) //{ // #region Sample code: Access TEST_OBJECT attributes // string stringAttributeValue = ""; // AttributeHandle hAttr = AttributeHandle.Invalid; // result = this.Sink.GetAttributeHandle(hDatabase, hObject, "TEST_STRING", ref hAttr); // WISEError.CheckCallFailedEx(result); // result = this.Sink.GetAttributeValue(hDatabase, hObject, hAttr, ref stringAttributeValue); // WISEError.CheckCallFailedEx(result); // #endregion //} #endregion } } catch (WISEException ex) { result = ex.Error.ErrorCode; } return result; }
internal CimMethodQualifierCollection(ClassHandle classHandle, int index) { this.classHandle = classHandle; this.methodIndex = index; }
internal CimQualifierOfClass(ClassHandle classHandle, int index) { this.classHandle = classHandle; this.index = index; }
internal CimClass(ClassHandle handle) { this._classHandle = handle; }