My Project
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Friends
Macros
Pages
arraytemplate.h
1
#ifndef arraytemplate_h
2
#define arraytemplate_h
3
4
// This file defines the templates required by new_ArrayMap() for
5
// creating array maps. The resulting register map, and accompanying
6
// objects are defined in arraymap.h.
7
8
#include "arraymap.h"
9
#include "regtemplate.h"
10
11
// Uncomment the following for debugging information
12
// #define ARRAYMAP
13
17
typedef
struct
{
18
char
name[REG_NAME_LEN+1];
// An unambiguous name for the template
19
RegTemplate
* regtemplate;
// The template of registers
20
char
comment_[100];
21
}
RegTemp
;
22
27
typedef
struct
{
28
RegTemp
*templates;
// The array of register templates
29
unsigned
ntemplate;
// The number of elements in templates[]
30
}
ArrayTemplate
;
31
35
ArrayMap
*new_ArrayMap(
ArrayTemplate
*arrayTmp);
36
37
/*.......................................................................
38
* Retreive an array map template from a network buffer and convert
39
* it to an array map.
40
*/
41
ArrayMap
*net_get_ArrayMap(
gcp::control::NetBuf
*net);
42
46
int
net_put_ArrayTemplate(
ArrayTemplate
*arrTmp,
gcp::control::NetBuf
*net);
47
48
/*.......................................................................
49
* Unpack an array map template from a network buffer.
50
*/
51
ArrayTemplate
*net_get_ArrayTemplate(
gcp::control::NetBuf
*net);
52
53
/*.......................................................................
54
* Return the space needed to pack a given array-map template
55
* into a NetBuf network buffer.
56
*/
57
int
net_ArrayTemplate_size(
ArrayTemplate
*arrayTmp);
58
63
ArrayTemplate
*del_ArrayTemplate(
ArrayTemplate
*arrayTmp);
64
65
#endif
gcp::control::NetBuf
Definition:
netbuf.h:42
RegTemplate
Definition:
regtemplate.h:105
ArrayTemplate
Definition:
arraytemplate.h:27
RegTemp
Definition:
arraytemplate.h:17
ArrayMap
Definition:
arraymap.h:177
gcpCbass
control
code
unix
libunix_src
common
arraytemplate.h
Generated on Thu Jun 21 2018 14:30:00 for My Project by
1.8.6