stumpless 2.2.0
Loading...
Searching...
No Matches
Param.hpp
Go to the documentation of this file.
1#ifndef __PARAM_HPP
2#define __PARAM_HPP
3
4#include <stumpless/param.h>
5#include <stumpless/Param.hpp>
6
7namespace stumpless {
8
12 class Param {
13 public:
14
15 struct stumpless_param *equivalent;
16
24 Param( struct stumpless_param *param );
32 Param( const char *name, const char *value );
40 Param( const Param & param );
44 ~Param( void );
54 const char *GetName( void );
64 const char *GetValue( void );
74 Param& SetName( const char *name );
84 Param& SetValue( const char *value );
93 const char *ToString( void );
94 };
95
96}
97
98#endif
A parameter within a structured data element.
Definition Param.hpp:12
Param & SetValue(const char *value)
Set the value of this Param.
Param(const Param &param)
Creates a Param as a copy of another Param.
Param(struct stumpless_param *param)
Creates a new Param based on a stumpless_param struct.
Param(const char *name, const char *value)
Creates a new Param with the given name and value.
const char * GetValue(void)
The value of this Param.
struct stumpless_param * equivalent
Definition Param.hpp:15
const char * ToString(void)
Gives a string representation of this Param.
~Param(void)
Destroys this parameter and releases all memory allocated for it.
const char * GetName(void)
The name of this Param.
Param & SetName(const char *name)
Set the name of this Param.
Definition AddressFailure.hpp:7