BLPAPI C++  3.24.10
blpapi_diagnosticsutil.h
Go to the documentation of this file.
1 /* Copyright 2013. Bloomberg Finance L.P.
2  *
3  * Permission is hereby granted, free of charge, to any person obtaining a copy
4  * of this software and associated documentation files (the "Software"), to
5  * deal in the Software without restriction, including without limitation the
6  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7  * sell copies of the Software, and to permit persons to whom the Software is
8  * furnished to do so, subject to the following conditions: The above
9  * copyright notice and this permission notice shall be included in all copies
10  * or substantial portions of the Software.
11  *
12  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
18  * IN THE SOFTWARE.
19  */
20 
28 #ifndef INCLUDED_BLPAPI_DIAGNOSTICSUTIL
29 #define INCLUDED_BLPAPI_DIAGNOSTICSUTIL
30 
60 #ifndef INCLUDED_BLPAPI_CALL
61 #include <blpapi_call.h>
62 #endif
63 
64 #ifndef INCLUDED_BLPAPI_DEFS
65 #include <blpapi_defs.h>
66 #endif
67 
68 #ifndef INCLUDED_STDDEF
69 #include <stddef.h>
70 #define INCLUDED_STDDEF
71 #endif
72 
73 #ifdef __cplusplus
74 extern "C" {
75 #endif
76 
78 int blpapi_DiagnosticsUtil_memoryInfo(char *buffer, size_t bufferLength);
79 
80 #ifdef __cplusplus
81 }
82 
90 namespace BloombergLP {
91 namespace blpapi {
92 
94  public:
95  static int memoryInfo(char *buffer, size_t bufferLength);
107 };
108 
109 inline int DiagnosticsUtil::memoryInfo(char *buffer, size_t bufferLength)
110 {
111  BLPAPI_CALL_DIAGNOSTICSUTIL_MEMORYINFO(buffer, bufferLength);
112 }
113 
114 }
115 }
116 
120 #endif
121 
122 #endif
static int memoryInfo(char *buffer, size_t bufferLength)
Definition: blpapi_diagnosticsutil.h:109
Common definitions used by the library.
Definition: blpapi_abstractsession.h:187
Definition: blpapi_diagnosticsutil.h:93
#define BLPAPI_CALL_DIAGNOSTICSUTIL_MEMORYINFO(a1, a2)
Definition: blpapi_call.h:412
#define BLPAPI_EXPORT
Definition: blpapi_defs.h:171
Provide functions for dispatchtbl.
int blpapi_DiagnosticsUtil_memoryInfo(char *buffer, size_t bufferLength)