28 #ifndef INCLUDED_BLPAPI_REQUEST 29 #define INCLUDED_BLPAPI_REQUEST 67 struct blpapi_Request;
171 [[deprecated(
"Use the form that takes Name instead of const char*")]]
void 172 set(
const char *name,
bool value);
177 [[deprecated(
"Use the form that takes Name instead of const char*")]]
void 178 set(
const char *name,
char value);
183 [[deprecated(
"Use the form that takes Name instead of const char*")]]
void 189 [[deprecated(
"Use the form that takes Name instead of const char*")]]
void 195 [[deprecated(
"Use the form that takes Name instead of const char*")]]
void 201 [[deprecated(
"Use the form that takes Name instead of const char*")]]
void 207 [[deprecated(
"Use the form that takes Name instead of const char*")]]
void 213 [[deprecated(
"Use the form that takes Name instead of const char*")]]
void 214 set(
const char *name,
const char *value);
219 void set(
const Name& name,
bool value);
224 void set(
const Name& name,
char value);
254 void set(
const Name& name,
const char *value);
259 void set(
const Name& name,
const std::string& value);
264 void set(
const Name& name,
const void *value, std::size_t length);
269 template <
typename BYTES,
270 typename std::enable_if<IsByteSequence<BYTES>::value,
bool>::type
272 void set(
const Name& name,
const BYTES& value);
277 [[deprecated(
"Use the form that takes Name instead of const char*")]]
void 278 append(
const char *name,
bool value);
283 [[deprecated(
"Use the form that takes Name instead of const char*")]]
void 284 append(
const char *name,
char value);
289 [[deprecated(
"Use the form that takes Name instead of const char*")]]
void 295 [[deprecated(
"Use the form that takes Name instead of const char*")]]
void 301 [[deprecated(
"Use the form that takes Name instead of const char*")]]
void 307 [[deprecated(
"Use the form that takes Name instead of const char*")]]
void 313 [[deprecated(
"Use the form that takes Name instead of const char*")]]
void 319 [[deprecated(
"Use the form that takes Name instead of const char*")]]
void 320 append(
const char *name,
const char *value);
360 void append(
const Name& name,
const char *value);
365 void append(
const Name& name,
const std::string& value);
376 "Use the form that takes Name instead of const char*")]]
Element 387 [[deprecated(
"Use the form that takes Name instead of const " 419 std::ostream& stream,
int level = 0,
int spacesPerLevel = 4)
const;
469 d_handle = newHandle;
479 d_handle = src->d_handle;
480 d_elements = src->d_elements;
482 src->d_elements.
rebind(0);
487 d_handle = src.d_handle;
488 d_elements = src.d_elements;
636 const Name& element,
const void *value, std::size_t length)
638 d_elements.
setElement(element, value, length);
641 template <
typename BYTES,
642 typename std::enable_if<IsByteSequence<BYTES>::value,
bool>::type>
728 const char *requestId = 0;
736 std::ostream& stream,
int level,
int spacesPerLevel)
const 738 return d_elements.
print(stream, level, spacesPerLevel);
743 return request.
print(stream, 0, -1);
750 : d_request_p(request)
761 #endif // #ifdef __cplusplus 763 #endif // #ifndef INCLUDED_BLPAPI_REQUEST Request * operator->() const
Definition: blpapi_request.h:756
RequestRef(Request *request_p)
Definition: blpapi_request.h:749
std::ostream & print(std::ostream &stream, int level=0, int spacesPerLevel=4) const
Definition: blpapi_request.h:735
struct blpapi_Element blpapi_Element_t
Definition: blpapi_types.h:136
blpapi_Request_t * handle() const
Definition: blpapi_request.h:733
struct blpapi_Request blpapi_Request_t
Definition: blpapi_request.h:68
Element getElement(const char *name)
Definition: blpapi_request.h:702
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:712
void appendValue(bool value)
Definition: blpapi_element.h:1830
void set(const char *name, bool value)
Definition: blpapi_request.h:502
blpapi_Float32_t Float32
Definition: blpapi_types.h:473
Provide a key to identify individual subscriptions or requests.
Definition: blpapi_request.h:146
Definition: blpapi_element.h:464
Definition: blpapi_request.h:450
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:726
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:1922
void setElement(const char *name, bool value)
Definition: blpapi_element.h:1619
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:2339
#define BLPAPI_EXPORT
Definition: blpapi_defs.h:171
~Request()
Definition: blpapi_request.h:493
Definition: blpapi_datetime.h:245
void append(const char *name, bool value)
Definition: blpapi_request.h:542
Request(blpapi_Request_t *handle)
Definition: blpapi_request.h:467
int blpapi_Request_getRequestId(const blpapi_Request_t *request, const char **requestId)
Request * ptr() const
Definition: blpapi_request.h:754
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:1614