Name | |
---|---|
MAMAExpDLL mama_status | mamaFieldCacheRecord_create(mamaFieldCacheRecord * record) |
MAMAExpDLL mama_status | mamaFieldCacheRecord_destroy(mamaFieldCacheRecord record) |
MAMAExpDLL mama_status | mamaFieldCacheRecord_clear(mamaFieldCacheRecord record) |
MAMAExpDLL mama_status | mamaFieldCacheRecord_getSize(mamaFieldCacheRecord record, mama_size_t * size) |
MAMAExpDLL mama_status | mamaFieldCacheRecord_add(mamaFieldCacheRecord record, mama_fid_t fid, mamaFieldType type, const char * name, mamaFieldCacheField * field) |
MAMAExpDLL mama_status | mamaFieldCacheRecord_getField(mamaFieldCacheRecord record, mama_size_t index, mamaFieldCacheField * field) |
MAMAExpDLL mama_status | mamaFieldCacheRecord_find(mamaFieldCacheRecord record, mama_fid_t fid, const char * name, mamaFieldCacheField * field) |
MAMAExpDLL mama_status mamaFieldCacheRecord_create(
mamaFieldCacheRecord * record
)
Parameters:
Return: Resulting status of the call which can be MAMA_STATUS_NOMEM MAMA_STATUS_NULL_ARG MAMA_STATUS_INVALID_ARG MAMA_STATUS_OK
This function will create a mamaFieldCacheRecord.
MAMAExpDLL mama_status mamaFieldCacheRecord_destroy(
mamaFieldCacheRecord record
)
Parameters:
Return: Resulting status of the call which can be MAMA_STATUS_NULL_ARG MAMA_STATUS_OK
This function will destroy a mamaFieldCacheRecord
previously allocated by a call to mamaFieldCacheRecord_create
. Note that all the fields contained in the record will be destroyed.
MAMAExpDLL mama_status mamaFieldCacheRecord_clear(
mamaFieldCacheRecord record
)
Parameters:
Return: Resulting status of the call which can be MAMA_STATUS_NULL_ARG MAMA_STATUS_OK
This function will clear a mamaFieldCacheRecord
. Note that all the fields contained in the record will be destroyed.
MAMAExpDLL mama_status mamaFieldCacheRecord_getSize(
mamaFieldCacheRecord record,
mama_size_t * size
)
Parameters:
Return: Resulting status of the call which can be MAMA_STATUS_NULL_ARG MAMA_STATUS_OK
This function will return the number of fields stored in a record.
MAMAExpDLL mama_status mamaFieldCacheRecord_add(
mamaFieldCacheRecord record,
mama_fid_t fid,
mamaFieldType type,
const char * name,
mamaFieldCacheField * field
)
Parameters:
Return: Resulting status of the call which can be MAMA_STATUS_NULL_ARG MAMA_STATUS_OK
This function will create and add a field to the record; the new field is returned. The field will be destroyed when the record is destroyed.
MAMAExpDLL mama_status mamaFieldCacheRecord_getField(
mamaFieldCacheRecord record,
mama_size_t index,
mamaFieldCacheField * field
)
Parameters:
Return: Resulting status of the call which can be MAMA_STATUS_NULL_ARG MAMA_STATUS_INVALID_ARG MAMA_STATUS_OK
This function will retrieve a field from the record using a position in the Record as in a normal C array. This can be useful when iterating the fields of the record in a loop. Note that position is not significative in a mamaFieldCacheRecord
.
MAMAExpDLL mama_status mamaFieldCacheRecord_find(
mamaFieldCacheRecord record,
mama_fid_t fid,
const char * name,
mamaFieldCacheField * field
)
Parameters:
Return: Resulting status of the call which can be MAMA_STATUS_NULL_ARG MAMA_STATUS_INVALID_ARG MAMA_STATUS_NOT_FOUND MAMA_STATUS_OK
This function will retrieve a field from the record using the field id of the field to get.
/* $Id$
*
* OpenMAMA: The open middleware agnostic messaging API
* Copyright (C) 2011 NYSE Technologies, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#ifndef MamaFieldCacheRecordH__
#define MamaFieldCacheRecordH__
#include <mama/config.h>
#include <mama/fielddesc.h>
#include <mama/types.h>
#include <mama/status.h>
#include <mama/fieldcache/fieldcachetypes.h>
#include <mama/fieldcache/fieldcachefield.h>
#if defined(__cplusplus)
extern "C" {
#endif /* defined(__cplusplus) */
MAMAExpDLL
extern mama_status
mamaFieldCacheRecord_create(mamaFieldCacheRecord* record);
MAMAExpDLL
extern mama_status
mamaFieldCacheRecord_destroy(mamaFieldCacheRecord record);
MAMAExpDLL
extern mama_status
mamaFieldCacheRecord_clear(mamaFieldCacheRecord record);
MAMAExpDLL
extern mama_status
mamaFieldCacheRecord_getSize(mamaFieldCacheRecord record, mama_size_t* size);
MAMAExpDLL
extern mama_status
mamaFieldCacheRecord_add(mamaFieldCacheRecord record,
mama_fid_t fid,
mamaFieldType type,
const char* name,
mamaFieldCacheField* field);
MAMAExpDLL
extern mama_status
mamaFieldCacheRecord_getField(mamaFieldCacheRecord record,
mama_size_t index,
mamaFieldCacheField* field);
MAMAExpDLL
extern mama_status
mamaFieldCacheRecord_find(mamaFieldCacheRecord record,
mama_fid_t fid,
const char* name,
mamaFieldCacheField* field);
#if defined(__cplusplus)
}
#endif /* defined(__cplusplus) */
#endif /* MamaFieldCacheRecordH__ */
Updated on 2023-03-31 at 15:29:16 +0100