#include "common.h"
Go to the source code of this file.
Classes | |
struct | base1_public_data_st_ |
Typedefs | |
typedef struct base1_st_ * | base1_handle |
typedef struct base1_public_data_st_ | base1_public_data_st |
Functions | |
const char * | base1_get_val1_description (void) |
my_rc_e | base1_get_public_data (base1_handle base1_h, base1_public_data_st *public_data) |
my_rc_e | base1_set_public_data (base1_handle base1_h, base1_public_data_st *public_data) |
my_rc_e | base1_increase_val3 (base1_handle base1_h) |
base1_handle | base1_new1 (void) |
base1_handle | base1_new2 (base1_public_data_st *public_data) |
base1_handle | base1_new3 (uint8_t val1, uint32_t val3) |
void | base1_delete (base1_handle base1_h) |
const char * | base1_type_string (base1_handle base1_h) |
my_rc_e | base1_string (base1_handle base1_h, char *buffer, size_t buffer_size) |
my_rc_e | base1_string_size (base1_handle base1_h, size_t *buffer_size) |
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
This is the public interface for base1 class.
Definition in file base1.h.
typedef struct base1_st_* base1_handle |
typedef struct base1_public_data_st_ base1_public_data_st |
Public data for the class
void base1_delete | ( | base1_handle | base1_h | ) |
my_rc_e base1_get_public_data | ( | base1_handle | base1_h, |
base1_public_data_st * | public_data | ||
) |
Gets a copy of the public data for the given object. Note this is a shallow copy of the data, modifying it will not change the object's state. Writing the object's state is handled seperately by base1_set_public_data().
base1_h | The object |
public_data | The data buffer into which the values should be read |
const char* base1_get_val1_description | ( | void | ) |
my_rc_e base1_increase_val3 | ( | base1_handle | base1_h | ) |
base1_handle base1_new1 | ( | void | ) |
base1_handle base1_new2 | ( | base1_public_data_st * | public_data | ) |
base1_handle base1_new3 | ( | uint8_t | val1, |
uint32_t | val3 | ||
) |
my_rc_e base1_set_public_data | ( | base1_handle | base1_h, |
base1_public_data_st * | public_data | ||
) |
Set the public data for the given object. Note that this creates a deep copy of the data in the object. Also note that it overwrites all public data in the object, not certain fields seletively.
base1_h | The object |
public_data | The data buffer whose values should be written into the object |
my_rc_e base1_string | ( | base1_handle | base1_h, |
char * | buffer, | ||
size_t | buffer_size | ||
) |
Get a string representation of the object. This is a virtual function.
base1_h | The object |
buffer | The buffer in which to put the string. |
buffer_size | The size of the buffer. |
my_rc_e base1_string_size | ( | base1_handle | base1_h, |
size_t * | buffer_size | ||
) |
Get the minimum size of a string buffer that should be used to get a string representation of the object. This is a virtual function.
base1_h | The object |
buffer_size | Outputs the size of the buffer that should be used. |
const char* base1_type_string | ( | base1_handle | base1_h | ) |