Open Core Interface - MLPI
MLPI-MotionLogicProgrammingInterface(mlpi4COM)  1.26.2
IBuffer.idl
Go to the documentation of this file.
1 // -----------------------------------------------------------------------
2 // MLPI - <IBuffer.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 
63 [
64  object,
65  uuid(0B87C392-EDFE-497c-BCE1-47DD00217178),
66  dual,
67  nonextensible,
68  helpstring("IBuffer Interface"),
69  pointer_default(unique)
70 ]
71 interface IBuffer : IDispatch{
72 
75  typedef [v1_enum] enum TraceType
76  {
81  }TraceType;
82 
83 #if defined(WIN32) || defined(WIN64)
84  [
85  uuid(28B7FD1A-1DAE-4446-9BB8-9A3C3BDF8791)
86  ]
102  {
103  LONGLONG index;
106  LONG lineNumber;
107  LONG threadId;
108  BSTR text;
109  BSTR moduleName;
111  };
112 #endif
113 
114  [propget, id(1), helpstring("Property NameOfBuffer")] HRESULT NameOfBuffer([out, retval] BSTR* bufferName);
115 
116 
139  [id(2), helpstring("Method GetNewestMessageIndex")] HRESULT GetNewestMessageIndex([out, retval] LONGLONG *newestIndex);
140 
163  [id(3), helpstring("Method GetOldestMessageIndex")] HRESULT GetOldestMessageIndex([out, retval] LONGLONG *oldestIndex);
164 
165 #if defined(WIN32) || defined(WIN64)
166  [id(4), helpstring("Method ReadBuffer")] HRESULT ReadBuffer([in] LONGLONG startIndex, [in] LONG numElements, [out, retval] SAFEARRAY (struct TraceMessage) *messages);
201 #endif
202 };
203 
204 // -----------------------------------------------------------------------
205 // HISTORY
206 // -----------------------------------------------------------------------
207 // 01-Jan-2012
208 // - first release
209 //
210 
211 
212 
BSTR functionName
Function name by which the trace message was sent.
Definition: IBuffer.idl:110
HRESULT GetOldestMessageIndex([out, retval] LONGLONG *oldestIndex)
This function returns the message index of the oldest message available in the given trace buffer...
TraceType
This enumeration defines the different types of messages that can be found in a trace buffer...
Definition: IBuffer.idl:75
LONG threadId
Id of thread in which trace message was sent.
Definition: IBuffer.idl:107
LONG milliseconds
Time in milliseconds when the message was sent.
Definition: IBuffer.idl:105
Message is warning.
Definition: IBuffer.idl:79
Message is error.
Definition: IBuffer.idl:80
HRESULT ReadBuffer([in] LONGLONG startIndex, [in] LONG numElements, [out, retval] SAFEARRAY(struct TraceMessage)*messages)
This function reads messages of the given buffer and returns them as an array.
Definition of the IBuffer interface to access settings of a single trace buffer.
Definition: IBuffer.idl:71
BSTR moduleName
Module name by which the trace message was sent.
Definition: IBuffer.idl:109
This structure defines the information about a trace buffer as used by ReadBuffer.
Definition: IBuffer.idl:101
LONGLONG index
Unique index of the message.
Definition: IBuffer.idl:103
HRESULT GetNewestMessageIndex([out, retval] LONGLONG *newestIndex)
This function returns the message index of the newest message available in the given trace buffer...
BSTR text
User Message text sent with trace message.
Definition: IBuffer.idl:108
Unspecified message type.
Definition: IBuffer.idl:77
LONG lineNumber
Line in the code in which trace message was sent.
Definition: IBuffer.idl:106
TraceType type
Type of message (message, error, warning).
Definition: IBuffer.idl:104
Message is log.
Definition: IBuffer.idl:78