30#include <sptk5/db/QueryParameterBinding.h>
34class QueryParameterList;
72 return m_timeData.data();
80 return m_callbackLength;
169 setString(s.c_str(), s.length());
197 setBuffer(buffer.
data(), buffer.
bytes());
221 virtual void setString(
const char* value,
size_t maxlen);
232 setString(value.c_str(), (uint32_t) value.length());
240 return m_binding.m_output;
252 void reallocateBuffer(
const char* value,
size_t maxlen,
size_t valueLength);
257 std::vector<uint32_t> m_bindParamIndexes;
258 std::array<uint8_t, 80> m_timeData {};
259 long m_callbackLength {0};
260 QueryParameterList* m_paramList {
nullptr};
263using SQueryParameter = std::shared_ptr<QueryParameter>;
size_t bytes() const
Definition: BufferStorage.h:213
uint8_t * data()
Definition: BufferStorage.h:106
Definition: DateTime.h:86
Definition: QueryParameterBinding.h:49
Definition: QueryParameterList.h:57
Definition: QueryParameter.h:44
QueryParameter & operator=(const uint8_t *value) override
Definition: QueryParameter.h:185
QueryParameter & operator=(DateTime dt) override
Definition: QueryParameter.h:176
QueryParameter & operator=(const std::string &s)
Definition: QueryParameter.h:167
uint8_t * conversionBuffer()
Definition: QueryParameter.h:70
void setString(const String &value) override
Definition: QueryParameter.h:230
QueryParameter & operator=(const Variant ¶m)
~QueryParameter() override=default
QueryParameter & operator=(int16_t v)
Definition: QueryParameter.h:113
QueryParameter & operator=(const Buffer &buffer) override
Definition: QueryParameter.h:195
uint32_t bindCount() const
void bindAdd(uint32_t bindIndex)
virtual void setString(const char *value)
Definition: QueryParameter.h:208
virtual void setString(const char *value, size_t maxlen)
QueryParameterBinding & binding()
Definition: QueryParameter.h:247
QueryParameter & operator=(double v) override
Definition: QueryParameter.h:149
uint32_t bindIndex(uint32_t ind)
QueryParameter & operator=(uint16_t v)
Definition: QueryParameter.h:122
QueryParameter & operator=(int32_t v) override
Definition: QueryParameter.h:131
bool isOutput() const
Definition: QueryParameter.h:238
QueryParameter(const char *name, bool isOutput=false)
QueryParameter & operator=(int64_t v) override
Definition: QueryParameter.h:140
QueryParameter & operator=(const char *s) override
Definition: QueryParameter.h:158
long & callbackLength()
Definition: QueryParameter.h:78
Definition: Variant.h:372