8#ifndef INCLUDED_S_BALTST_SIMPLEREQUEST
9#define INCLUDED_S_BALTST_SIMPLEREQUEST
43#include <bslalg_typetraits.h>
57#include <bsl_string.h>
59#include <bsl_iosfwd.h>
60#include <bsl_limits.h>
64namespace bslma {
class Allocator; }
66namespace s_baltst {
class SimpleRequest; }
129#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
130 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
154#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
155 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
172 template <
typename t_MANIPULATOR>
181 template <
typename t_MANIPULATOR>
190 template <
typename t_MANIPULATOR>
217 bsl::ostream&
print(bsl::ostream& stream,
219 int spacesPerLevel = 4)
const;
227 template <
typename t_ACCESSOR>
235 template <
typename t_ACCESSOR>
244 template <
typename t_ACCESSOR>
247 int nameLength)
const;
263 return lhs.data() == rhs.data() &&
264 lhs.responseLength() == rhs.responseLength();
270 return !(lhs == rhs);
278 return rhs.print(stream, 0, -1);
302template <
typename t_MANIPULATOR>
320template <
typename t_MANIPULATOR>
323 enum { NOT_FOUND = -1 };
337template <
typename t_MANIPULATOR>
339 t_MANIPULATOR& manipulator,
343 enum { NOT_FOUND = -1 };
347 if (0 == attributeInfo) {
363 return d_responseLength;
367template <
typename t_ACCESSOR>
385template <
typename t_ACCESSOR>
388 enum { NOT_FOUND = -1 };
402template <
typename t_ACCESSOR>
404 t_ACCESSOR& accessor,
406 int nameLength)
const
408 enum { NOT_FOUND = -1 };
412 if (0 == attributeInfo) {
428 return d_responseLength;
Definition bslstl_string.h:1252
Definition bslma_allocator.h:545
Definition s_baltst_simplerequest.h:73
@ ATTRIBUTE_INDEX_DATA
Definition s_baltst_simplerequest.h:91
@ ATTRIBUTE_INDEX_RESPONSE_LENGTH
Definition s_baltst_simplerequest.h:92
SimpleRequest(const SimpleRequest &original, bslma::Allocator *basicAllocator=0)
@ ATTRIBUTE_ID_DATA
Definition s_baltst_simplerequest.h:82
@ ATTRIBUTE_ID_RESPONSE_LENGTH
Definition s_baltst_simplerequest.h:83
static const bdlat_AttributeInfo * lookupAttributeInfo(const char *name, int nameLength)
int manipulateAttribute(t_MANIPULATOR &manipulator, int id)
Definition s_baltst_simplerequest.h:321
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
SimpleRequest & operator=(const SimpleRequest &rhs)
Assign to this object the value of the specified rhs object.
static const bdlat_AttributeInfo * lookupAttributeInfo(int id)
int manipulateAttributes(t_MANIPULATOR &manipulator)
Definition s_baltst_simplerequest.h:303
friend bsl::ostream & operator<<(bsl::ostream &stream, const SimpleRequest &rhs)
Definition s_baltst_simplerequest.h:275
static const char CLASS_NAME[]
Definition s_baltst_simplerequest.h:96
friend bool operator==(const SimpleRequest &lhs, const SimpleRequest &rhs)
Definition s_baltst_simplerequest.h:261
int accessAttributes(t_ACCESSOR &accessor) const
Definition s_baltst_simplerequest.h:368
int & responseLength()
Definition s_baltst_simplerequest.h:361
friend bool operator!=(const SimpleRequest &lhs, const SimpleRequest &rhs)
Returns !(lhs == rhs)
Definition s_baltst_simplerequest.h:268
@ NUM_ATTRIBUTES
Definition s_baltst_simplerequest.h:87
static const bdlat_AttributeInfo ATTRIBUTE_INFO_ARRAY[]
Definition s_baltst_simplerequest.h:98
~SimpleRequest()
Destroy this object.
bsl::string & data()
Definition s_baltst_simplerequest.h:355
int accessAttribute(t_ACCESSOR &accessor, int id) const
Definition s_baltst_simplerequest.h:386
SimpleRequest(bslma::Allocator *basicAllocator=0)
#define BDLAT_DECL_SEQUENCE_WITH_ALLOCATOR_BITWISEMOVEABLE_TRAITS(ClassName)
Definition bdlat_typetraits.h:301
#define BSLS_IDENT_RCSID(tag, str)
BSLS_IDENT_RCSID() - insert ident str (specific to platform/compiler)
Definition bsls_ident.h:244
#define BSLS_IDENT_PRAGMA_ONCE
BSLS_IDENT_PRAGMA_ONCE - macro to avoid multiple inclusion
Definition bsls_ident.h:263
Definition baljsn_encoder_testtypes.h:76
Definition s_baltst_address.h:66
Definition bdlat_attributeinfo.h:139
int d_id
Definition bdlat_attributeinfo.h:142
Definition bdlat_typetraits.h:146