28 #ifndef INCLUDED_BLPAPI_REQUEST 29 #define INCLUDED_BLPAPI_REQUEST 62 #include <blpapi_deprecate.h> 68 struct blpapi_Request;
172 BLPAPI_DEPRECATE_STRING_NAME
void set(
const char *name,
bool value);
177 BLPAPI_DEPRECATE_STRING_NAME
void set(
const char *name,
char value);
182 BLPAPI_DEPRECATE_STRING_NAME
void set(
const char *name,
Int32 value);
187 BLPAPI_DEPRECATE_STRING_NAME
void set(
const char *name,
Int64 value);
192 BLPAPI_DEPRECATE_STRING_NAME
void set(
const char *name,
Float32 value);
197 BLPAPI_DEPRECATE_STRING_NAME
void set(
const char *name,
Float64 value);
202 BLPAPI_DEPRECATE_STRING_NAME
void set(
203 const char *name,
const Datetime& value);
208 BLPAPI_DEPRECATE_STRING_NAME
void set(
const char *name,
const char *value);
213 void set(
const Name& name,
bool value);
218 void set(
const Name& name,
char value);
248 void set(
const Name& name,
const char *value);
253 void set(
const Name& name,
const std::string& value);
258 void set(
const Name& name,
const void *value, std::size_t length);
263 template <
typename BYTES,
264 typename std::enable_if<IsByteSequence<BYTES>::value,
bool>::type
266 void set(
const Name& name,
const BYTES& value);
271 BLPAPI_DEPRECATE_STRING_NAME
void append(
const char *name,
bool value);
276 BLPAPI_DEPRECATE_STRING_NAME
void append(
const char *name,
char value);
281 BLPAPI_DEPRECATE_STRING_NAME
void append(
const char *name,
Int32 value);
286 BLPAPI_DEPRECATE_STRING_NAME
void append(
const char *name,
Int64 value);
291 BLPAPI_DEPRECATE_STRING_NAME
void append(
const char *name,
Float32 value);
296 BLPAPI_DEPRECATE_STRING_NAME
void append(
const char *name,
Float64 value);
301 BLPAPI_DEPRECATE_STRING_NAME
void append(
302 const char *name,
const Datetime& value);
307 BLPAPI_DEPRECATE_STRING_NAME
void append(
308 const char *name,
const char *value);
348 void append(
const Name& name,
const char *value);
353 void append(
const Name& name,
const std::string& value);
374 const char *name)
const;
404 std::ostream& stream,
int level = 0,
int spacesPerLevel = 4)
const;
454 d_handle = newHandle;
464 d_handle = src->d_handle;
465 d_elements = src->d_elements;
467 src->d_elements.
rebind(0);
472 d_handle = src.d_handle;
473 d_elements = src.d_elements;
621 const Name& element,
const void *value, std::size_t length)
623 d_elements.
setElement(element, value, length);
626 template <
typename BYTES,
627 typename std::enable_if<IsByteSequence<BYTES>::value,
bool>::type>
713 const char *requestId = 0;
721 std::ostream& stream,
int level,
int spacesPerLevel)
const 723 return d_elements.
print(stream, level, spacesPerLevel);
728 return request.
print(stream, 0, -1);
735 : d_request_p(request)
746 #endif // #ifdef __cplusplus 748 #endif // #ifndef INCLUDED_BLPAPI_REQUEST Request * operator->() const
Definition: blpapi_request.h:741
RequestRef(Request *request_p)
Definition: blpapi_request.h:734
std::ostream & print(std::ostream &stream, int level=0, int spacesPerLevel=4) const
Definition: blpapi_request.h:720
struct blpapi_Element blpapi_Element_t
Definition: blpapi_types.h:136
blpapi_Request_t * handle() const
Definition: blpapi_request.h:718
BLPAPI_DEPRECATE_STRING_NAME Element getElement(const char *name)
Definition: blpapi_request.h:687
Common definitions used by the library.
blpapi_Int32_t Int32
Definition: blpapi_types.h:469
Definition: blpapi_abstractsession.h:187
blpapi_Element_t * blpapi_Request_elements(blpapi_Request_t *request)
Definition: blpapi_name.h:150
#define BLPAPI_CALL(FUNCNAME)
Definition: blpapi_call.h:353
blpapi_Float64_t Float64
Definition: blpapi_types.h:474
Element asElement()
Definition: blpapi_request.h:697
void appendValue(bool value)
Definition: blpapi_element.h:1818
BLPAPI_DEPRECATE_STRING_NAME void set(const char *name, bool value)
Definition: blpapi_request.h:487
blpapi_Float32_t Float32
Definition: blpapi_types.h:473
Provide a key to identify individual subscriptions or requests.
Definition: blpapi_request.h:147
Definition: blpapi_element.h:465
Definition: blpapi_request.h:435
std::ostream & operator<<(std::ostream &os, const CorrelationId &correlator)
Definition: blpapi_correlationid.h:592
void blpapi_Request_setPreferredRoute(blpapi_Request_t *request, blpapi_CorrelationId_t *correlationId)
const char * getRequestId() const
Definition: blpapi_request.h:711
blpapi_Int64_t Int64
Definition: blpapi_types.h:471
void blpapi_Request_destroy(blpapi_Request_t *request)
BLPAPI_DEPRECATE_STRING_NAME int getElement(Element *result, const char *name) const
Definition: blpapi_element.h:1910
BLPAPI_DEPRECATE_STRING_NAME void setElement(const char *name, bool value)
Definition: blpapi_element.h:1607
Defines Exceptions that can be thrown by the blpapi library.
struct blpapi_Request blpapi_Request_t
Definition: blpapi_dispatchtbl.h:81
std::ostream & print(std::ostream &stream, int level=0, int spacesPerLevel=4) const
Definition: blpapi_element.h:2327
#define BLPAPI_EXPORT
Definition: blpapi_defs.h:171
~Request()
Definition: blpapi_request.h:478
Definition: blpapi_datetime.h:245
BLPAPI_DEPRECATE_STRING_NAME void append(const char *name, bool value)
Definition: blpapi_request.h:527
Request(blpapi_Request_t *handle)
Definition: blpapi_request.h:452
int blpapi_Request_getRequestId(const blpapi_Request_t *request, const char **requestId)
Request * ptr() const
Definition: blpapi_request.h:739
Provide a representation of an item in a message.
Provide a representation of strings for use as container keys.
void rebind(blpapi_Element_t *element)
Definition: blpapi_element.h:1602