#include <cursor.h>
Public Member Functions | |
SimpleTypeParameter (ParamType type, const int pos, const void *varAddr, const Type &varType, const MetadataHolder &attributes=MetadataHolder::emptyMeta) |
Requires the varType to be of Type::IOPC_TYPECLASS_STRING or Type::IOPC_TYPECLASS_SIMPLE
iopc::SimpleTypeParameter::SimpleTypeParameter | ( | ParamType | type, | |
const int | pos, | |||
const void * | varAddr, | |||
const Type & | varType, | |||
const MetadataHolder & | attributes = MetadataHolder::emptyMeta | |||
) |
type | Parameter direction | |
pos | Position of the parameter in the prepared statement or in the result set, starting from 1. Note that some drivers (like the IopcOracle10g driver) require the OUT parameters to be bound as a sequence so that no positions are skipped. | |
varAddr | Address of the input parameter value or an output buffer to be bound If Type::IOPC_TYPECLASS_STRING type is used, this pointer must point to a buffer containing standard, zero-terminated C string representation [IN] or to a buffer into which a standard C string will be fetched [OUT]. So even if the varType is TypeDesc<std::string> the varAddr must point [IN] or will point [OUT] to a standard C string. | |
varType | Parameter data type | |
attributes | Additional attributes or driver-dependent data.
|