API 9.3 Interfaces 9.3.1 ITcEventLog The ITcEventLog is a standard interface of the main class of the TcEventLogger [ } 127] . The interface provides the main features to control active and logged alarms and also to add new alarms or delete existing ones. The interface derives from IDispatch so that it could be used by all languages that support COM automation interfaces. IDispatch itself derives from IUnknown. Table 15: Methods and Properties in Vtable Order 9.3.1.1 ReportEvent ITcEventLog [ } 129] TcEventLogger 129 Version:
1.1 IUnknown Methods Description QueryInterface Returns a pointer to the interface you query for AddRef Increments the reference counter Release Decrements the reference counter IDispatch Methods Description GetIDsOfNames Maps a single member name and an optional set of parameter names to a corresponding set of integer dispatch identifiers (DISPIDs), which can then be used on subsequent calls to IDispatch::Invoke. GetTypeInfo Retrieves the type information for an object. GetTypeInfoCount Retrieves the number of type information interfaces that an object provides, either 0 or 1. Invoke Provides access to properties and methods exposed by an object.
ITcEventLog Methods and Properties Description ReportEvent [} 129] This method is used to issue a new event from the client. ClearActiveEvents [} 131] This method resets all Active events. GetLastEvent [} 131] This method returns the most recent events EnumActiveEvents [} 132] Returns an enumeration object that is used to iterate through the list of active events. EnumActiveEventsEx [} 133] Returns a standard enumerator for iterating through the list of active events. EnumLoggedEvents [} 133] Returns an enumeration object that is used to iterate through the list of logged events. EnumLoggedEventsEx [} 135] Returns a standard enumerator for iterating through the list of logged events.
Export [} 135] Copies the list of logged event to a structured storage and returns the storage. ExportText Not implemented ActiveEvents [} 136] Returns the number of active events. LoggedEvents [} 136] Returns the number of logged events. ClearLoggedEvents [} 137] This method resets all logged events.