Open Core Interface - MLPI
MLPI-MotionLogicProgrammingInterface(mlpi4COM)  1.26.2
ITrace.idl
Go to the documentation of this file.
1 // -----------------------------------------------------------------------
2 // MLPI - <ITrace.idl>
3 // -----------------------------------------------------------------------
4 // Copyright (c) 2012 Bosch Rexroth. All rights reserved.
5 // Redistribution and use in source and binary forms of this MLPI software
6 // (SW) provided to you, with or without modification, are permitted
7 // without prior approval provided that the following conditions are met:
8 //
9 // 1. Redistributions of source code of SW must retain the above copyright
10 // notice, this list of conditions and the following disclaimer.
11 //
12 // 2. Redistributions in binary form of SW must reproduce the above copyright
13 // notice, this list of conditions and the following disclaimer in the
14 // documentation and/or other materials provided with the distribution.
15 //
16 // 3. User recognizes and acknowledges that it acquires no right,
17 // title or interest in or to any of the names or trademarks used in
18 // connection with the SW ("names") by virtue of this License and waives
19 // any right to or interest in the names. User recognizes and acknowledges
20 // that Names of companies or names or products of companies displayed
21 // in the documentation of SW to indicate the interoperability of products
22 // with the SW are the names of their respective owners. The use of such
23 // names in the documentation of SW does not imply any sponsorship,
24 // approval, or endorsement by such companies of this product.
25 //
26 // 4. Modified code versions, i.e. any addition to or deletion from
27 // the substance or structure of the original code of the SW running
28 // the MLPI must be plainly marked as such and must not be misrepresented
29 // as being original SW.
30 //
31 // 5. The SW may only be used in connection with a Bosch Rexroth product.
32 //
33 // THIS INFORMATION IS PROVIDED BY BOSCH REXROTH CORPORATION "AS IS"
34 // AND WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING
35 // (BUT NOTLIMITED TO) ANY IMPLIED WARRANTIES OF MERCHANTABILITY,
36 // FITNESS FOR ANY PARTICULAR PURPOSE, OR NON-INFRINGEMENT. WHILE THE
37 // INFORMATION PROVIDED IS BELIEVED TO BE ACCURATE, IT MAY INCLUDE
38 // ERRORS OR INACCURACIES.
39 // SUBJECT TO COMPULSORY STATUTORY PROVISIONS OF THE GERMAN LAW AS
40 // THE APPLICABLE LAW FOR THIS LICENSE BOSCH REXROTH CORPORATION WILL
41 // NOT BE LIABLE FOR ANY DAMAGES OF ANY KIND ARISING FROM THE USE OF
42 // THE SOFTWARE DISTRIBUTED HEREUNDER, INCLUDING BUT NOT LIMITED TO
43 // DIRECT, INDIRECT, INCIDENTAL, PUNITIVE, AND CONSEQUENTIAL DAMAGES.
44 // -----------------------------------------------------------------------
45 //
55 //
56 // -----------------------------------------------------------------------
57 
58 
59 
68 [
69  object,
70  uuid(4C8AEA66-5C10-46e6-820C-32CF5A9FD3CC),
71  dual,
72  nonextensible,
73  helpstring("ITrace Interface"),
74  pointer_default(unique)
75 ]
76 interface ITrace : IDispatch{
77 
78 
79 #if defined(WIN32) || defined(WIN64)
80  [
81  uuid(9E18BE35-8B19-4e7f-A25A-C6451D90C1C2)
82  ]
96  {
97  VARIANT isActive;
98  VARIANT toStdOut;
99  VARIANT toMainBuffer;
101  BSTR moduleName;
102  BSTR bufferName;
103  };
104 
105  [
106  uuid(5DD3E9BB-7043-45ec-A837-A879C7F86873)
107  ]
119  {
120  BSTR bufferName;
123  VARIANT isLocked;
124  };
125 #endif
126 
149  [propget, id(1), helpstring("Property Modules")] HRESULT Modules([out, retval] IModules** modules);
150 
173  [propget, id(2), helpstring("Property Buffers")] HRESULT Buffers([out, retval] IBuffers** buffers);
174 
196  [id(3), helpstring("Method ActivateAllModules")] HRESULT ActivateAllModules(void);
197 
219  [id(4), helpstring("Method DeactivateAllModules")] HRESULT DeactivateAllModules(void);
220 
243  [id(5), helpstring("Method GetNumberOfModules")] HRESULT GetNumberOfModules([out, retval] LONG *numberOfModules);
244 
267  [id(6), helpstring("Method GetNumberOfBuffers")] HRESULT GetNumberOfBuffers([out, retval] LONG *numberOfBuffers);
268 
269 #if defined(WIN32) || defined(WIN64)
270  [id(7), helpstring("Method GetModuleList")] HRESULT GetModuleList([out, retval] SAFEARRAY (struct TraceModuleInformation) *traceInfo);
304 
337  [id(8), helpstring("Method GetBufferList")] HRESULT GetBufferList([out, retval] SAFEARRAY (struct TraceBufferInformation) *traceInfo);
338 #endif
339 
358  [id(9), helpstring("Method ClearAllBuffers")] HRESULT ClearAllBuffers(void);
359 };
360 
361 
362 
363 // -----------------------------------------------------------------------
364 // HISTORY
365 // -----------------------------------------------------------------------
366 // 01-Jan-2012
367 // - first release
368 //
369 
370 
371 
372 
373 
374 
375 
376 
VARIANT toStdOut
Is output to stdout enabled?
Definition: ITrace.idl:98
BSTR bufferName
Name of the buffer.
Definition: ITrace.idl:120
VARIANT isLocked
Is this module locked? If true, then all messages to it are ignored.
Definition: ITrace.idl:123
HRESULT GetModuleList([out, retval] SAFEARRAY(struct TraceModuleInformation)*traceInfo)
This method returns an array of all currently available trace modules.
HRESULT DeactivateAllModules(void)
This function deactivates all available modules. Only modules which are activated insert messages int...
VARIANT isActive
Is this module active? If not, then all messages to it are ignored.
Definition: ITrace.idl:97
HRESULT ActivateAllModules(void)
This function activates all available modules. Only modules which are activated insert messages into ...
HRESULT GetNumberOfModules([out, retval] LONG *numberOfModules)
This method returns the number of currently available trace modules. Use the method GetModuleList to ...
IBuffers Buffers
This property returns an IBuffers object which allows access to different IBuffer objects...
HRESULT ClearAllBuffers(void)
This method clears all messages in all currently available trace buffers.
HRESULT GetBufferList([out, retval] SAFEARRAY(struct TraceBufferInformation)*traceInfo)
This method returns an array of all currently available trace buffers.
Definition of the IModules interface which is a collection of IModule objects.
Definition: IModules.idl:72
VARIANT toSeparateBuffer
Is output to separate trace buffer enabled?
Definition: ITrace.idl:100
Definition of the IBuffers interface which is a collection of IBuffer objects.
Definition: IBuffers.idl:74
HRESULT GetNumberOfBuffers([out, retval] LONG *numberOfBuffers)
This method returns the number of currently available trace buffers. Use the method GetBufferList to ...
This structure defines the information about a trace module as used by GetModuleList.
Definition: ITrace.idl:95
LONG actualBufferSize
Actual number of messages in the buffer.
Definition: ITrace.idl:122
BSTR moduleName
Name of the module.
Definition: ITrace.idl:101
VARIANT toMainBuffer
Is output to main buffer enabled?
Definition: ITrace.idl:99
This structure defines the information about a trace buffer as used by GetBufferList.
Definition: ITrace.idl:118
IModules Modules
This property returns a IModules object which allows access to different IModule objects. The IModules interface is a collection interface.
LONG maximumBufferSize
Maximum number of messages to be stored in the buffer.
Definition: ITrace.idl:121
BSTR bufferName
Name of optional separate buffer.
Definition: ITrace.idl:102
Definition of the ITrace interface which gives access to internal tracing facility of the device...
Definition: ITrace.idl:76