OpenMAMA C++ API
Wombat::MamaFieldCacheFieldString Class Reference

MamaFieldCacheFieldString. More...

#include <MamaFieldCacheFieldTypes.h>

Inheritance diagram for Wombat::MamaFieldCacheFieldString:
Wombat::MamaFieldCacheFieldBase

Public Member Functions

void set (MamaFieldCacheField &field, const char *value, mama_size_t len=0)
 Set the field value. More...
 
const char * get (const MamaFieldCacheField &field) const
 Return the value of the field. More...
 
- Public Member Functions inherited from Wombat::MamaFieldCacheFieldBase
virtual ~MamaFieldCacheFieldBase ()
 

Protected Member Functions

void checkType (const MamaFieldCacheField &field) const
 
- Protected Member Functions inherited from Wombat::MamaFieldCacheFieldBase
 MamaFieldCacheFieldBase ()
 

Detailed Description

MamaFieldCacheFieldString.

Class used to set and get the value of a char* single-value MamaFieldCacheField.

Member Function Documentation

§ set()

void Wombat::MamaFieldCacheFieldString::set ( MamaFieldCacheField field,
const char *  value,
mama_size_t  len = 0 
)

Set the field value.

Parameters
fieldThe field to set the value to.
valueThe new value of the field.

§ get()

const char* Wombat::MamaFieldCacheFieldString::get ( const MamaFieldCacheField field) const

Return the value of the field.

Parameters
fieldThe field to get the value from.
Returns
The value of the field.

§ checkType()

void Wombat::MamaFieldCacheFieldString::checkType ( const MamaFieldCacheField field) const
inlineprotected