Grupo cniSetElementValue

Funções para definir um valor no elemento de sintaxe especificado.

Sintaxe

void cniSetElementBitArrayValue(
    int*            returnCode,
    CciElement*     targetElement,
    const struct CciBitArray*   value);
void
cniSetElementBooleanValue(
    int*            returnCode,
    CciElement*     targetElement,
    CciBool      value);
void
cniSetElementByteArrayValue(
    int*            returnCode,
    CciElement*     targetElement,
    const struct CciByteArray*  value);
void
cniSetElementCharacterValue(
    int*            returnCode,
    CciElement*     targetElement,
    const CciChar*             value,
    CciSize                    length);
void
cniSetElementDateValue(
    int*            returnCode,
    CciElement*     targetElement,
    const struct CciDate*  value);
void
cniSetElementDecimalValue(
    int*            returnCode,
    CciElement*     targetElement,
    const CciChar*  value);
void
cniSetElementGmtTimestampValue(
    int*            returnCode,
    CciElement*     targetElement,
    const struct CciTimestamp* value);
void
cniSetElementGmtTimeValue(
    int*            returnCode,
    CciElement*     targetElement,
    const struct CciTime*  value);
void
cniSetElementIntegerValue(
    int*            returnCode,
    CciElement*     targetElement,
    CciInt       value);
void
cniSetElementRealValue(
    int*            returnCode,
    CciElement*     targetElement,
    CciReal      value);
void
cniSetElementTimestampValue(
    int*            returnCode,
    CciElement*     targetElement,
    const struct CciTimestamp* value);
void
cniSetElementTimeValue(
    int*            returnCode,
    CciElement*     targetElement,
    const struct CciTime*  value);

Parâmetros

returnCode
O código de retorno da função (saída).
Os possíveis códigos de retorno são:
  • CCI_SUCCESS
  • CCI_EXCEPTION
  • CCI_INV_ELEMENT_OBJECT
  • CCI_INV_DATA_POINTER
  • CCI_INV_DATA_BUFLEN
targetElement
O endereço do objeto do elemento de sintaxe de destino (entrada).
value
O valor a armazenar no elemento de sintaxe (entrada).
length
O comprimento do valor dos dados (entrada). Utilizado somente nas chamadas de funções relevantes.

Valores de Retorno

Nenhuma. Se ocorrer um erro, o parâmetro returnCode indica o motivo do erro.

Exemplo

	static char* functionName = (char *)"_Input_run()";
	void* buffer;
	CciTerminal* terminalObject;
	int buflen = 4096;
	int rc = CCI_SUCCESS;
	int rcDispatch = CCI_SUCCESS;
	char xmlData[] = "<A>data</a>";
	buffer = malloc(buflen);
	memcpy(buffer, &xmlData, sizeof(xmlData));

	cniSetInputBuffer(&rc, message, buffer, buflen);
Avisos | Marcas Registradas | Downloads | Biblioteca | Suporte | Feedback
Direitos Autorais IBM Corporation 1999, 2006 Última Atualização: 1 Sep 2006
as07980_