28 #ifndef INCLUDED_BLPAPI_REQUEST 29 #define INCLUDED_BLPAPI_REQUEST 66 struct blpapi_Request;
170 void set(
const char *name,
bool value);
175 void set(
const char *name,
char value);
180 void set(
const char *name,
Int32 value);
185 void set(
const char *name,
Int64 value);
205 void set(
const char *name,
const char *value);
210 void set(
const Name& name,
bool value);
215 void set(
const Name& name,
char value);
245 void set(
const Name& name,
const char *value);
250 void set(
const Name& name,
const std::string& value);
255 void set(
const Name& name,
const void *value, std::size_t length);
260 template <
typename BYTES,
261 typename std::enable_if<IsByteSequence<BYTES>::value,
bool>::type
263 void set(
const Name& name,
const BYTES& value);
268 void append(
const char *name,
bool value);
273 void append(
const char *name,
char value);
303 void append(
const char *name,
const char *value);
343 void append(
const Name& name,
const char *value);
348 void append(
const Name& name,
const std::string& value);
398 std::ostream& stream,
int level = 0,
int spacesPerLevel = 4)
const;
448 d_handle = newHandle;
458 d_handle = src->d_handle;
459 d_elements = src->d_elements;
461 src->d_elements.
rebind(0);
466 d_handle = src.d_handle;
467 d_elements = src.d_elements;
615 const Name& element,
const void *value, std::size_t length)
617 d_elements.
setElement(element, value, length);
620 template <
typename BYTES,
621 typename std::enable_if<IsByteSequence<BYTES>::value,
bool>::type>
707 const char *requestId = 0;
715 std::ostream& stream,
int level,
int spacesPerLevel)
const 717 return d_elements.
print(stream, level, spacesPerLevel);
722 return request.
print(stream, 0, -1);
729 : d_request_p(request)
740 #endif // #ifdef __cplusplus 742 #endif // #ifndef INCLUDED_BLPAPI_REQUEST Request * operator->() const
Definition: blpapi_request.h:735
RequestRef(Request *request_p)
Definition: blpapi_request.h:728
std::ostream & print(std::ostream &stream, int level=0, int spacesPerLevel=4) const
Definition: blpapi_request.h:714
struct blpapi_Element blpapi_Element_t
Definition: blpapi_types.h:136
blpapi_Request_t * handle() const
Definition: blpapi_request.h:712
struct blpapi_Request blpapi_Request_t
Definition: blpapi_request.h:67
Element getElement(const char *name)
Definition: blpapi_request.h:681
Common definitions used by the library.
blpapi_Int32_t Int32
Definition: blpapi_types.h:469
Definition: blpapi_abstractsession.h:220
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:691
void appendValue(bool value)
Definition: blpapi_element.h:1802
void set(const char *name, bool value)
Definition: blpapi_request.h:481
blpapi_Float32_t Float32
Definition: blpapi_types.h:473
Provide a key to identify individual subscriptions or requests.
Definition: blpapi_request.h:145
Definition: blpapi_element.h:464
Definition: blpapi_request.h:429
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:705
blpapi_Int64_t Int64
Definition: blpapi_types.h:471
void blpapi_Request_destroy(blpapi_Request_t *request)
int getElement(Element *result, const char *name) const
Definition: blpapi_element.h:1891
void setElement(const char *name, bool value)
Definition: blpapi_element.h:1591
Defines Exceptions that can be thrown by the blpapi library.
std::ostream & print(std::ostream &stream, int level=0, int spacesPerLevel=4) const
Definition: blpapi_element.h:2308
#define BLPAPI_EXPORT
Definition: blpapi_defs.h:171
~Request()
Definition: blpapi_request.h:472
Definition: blpapi_datetime.h:245
void append(const char *name, bool value)
Definition: blpapi_request.h:521
Request(blpapi_Request_t *handle)
Definition: blpapi_request.h:446
int blpapi_Request_getRequestId(const blpapi_Request_t *request, const char **requestId)
Request * ptr() const
Definition: blpapi_request.h:733
Provide a representation of an item in a message.
void rebind(blpapi_Element_t *element)
Definition: blpapi_element.h:1586