1 | /* |
---|
2 | * ---------------------------------------------------------------------- |
---|
3 | * INTERFACE: C Rappture Library Header |
---|
4 | * |
---|
5 | * ====================================================================== |
---|
6 | * AUTHOR: Derrick Kearney, Purdue University |
---|
7 | * Copyright (c) 2005 |
---|
8 | * Purdue Research Foundation, West Lafayette, IN |
---|
9 | * ====================================================================== |
---|
10 | */ |
---|
11 | |
---|
12 | |
---|
13 | #ifdef __cplusplus |
---|
14 | extern "C" { |
---|
15 | #endif |
---|
16 | |
---|
17 | typedef struct RpLibrary RpLibrary; |
---|
18 | |
---|
19 | // unit definition functions |
---|
20 | RpLibrary* rpLibrary (const char* path); |
---|
21 | void rpFreeLibrary (RpLibrary* lib); |
---|
22 | |
---|
23 | // RpLibrary member functions |
---|
24 | RpLibrary* rpElement (RpLibrary* lib, const char* path); |
---|
25 | RpLibrary* rpElementAsObject (RpLibrary* lib, const char* path); |
---|
26 | const char* rpElementAsType (RpLibrary* lib, const char* path); |
---|
27 | const char* rpElementAsComp (RpLibrary* lib, const char* path); |
---|
28 | const char* rpElementAsId (RpLibrary* lib, const char* path); |
---|
29 | |
---|
30 | RpLibrary* rpChildren (RpLibrary* lib, |
---|
31 | const char* path, |
---|
32 | RpLibrary* childEle); |
---|
33 | RpLibrary* rpChildrenByType (RpLibrary* lib, |
---|
34 | const char* path, |
---|
35 | RpLibrary* childEle, |
---|
36 | const char* type ); |
---|
37 | RpLibrary* rpChildrenAsObject (RpLibrary* lib, |
---|
38 | const char* path, |
---|
39 | const char* type ); |
---|
40 | const char* rpChildrenAsType (RpLibrary* lib, |
---|
41 | const char* path, |
---|
42 | const char* type ); |
---|
43 | const char* rpChildrenAsComp (RpLibrary* lib, |
---|
44 | const char* path, |
---|
45 | const char* type ); |
---|
46 | const char* rpChildrenAsId (RpLibrary* lib, |
---|
47 | const char* path, |
---|
48 | const char* type ); |
---|
49 | |
---|
50 | RpLibrary* rpGet (RpLibrary* lib, const char* path); |
---|
51 | const char* rpGetString (RpLibrary* lib, const char* path); |
---|
52 | double rpGetDouble (RpLibrary* lib, const char* path); |
---|
53 | |
---|
54 | void rpPut (RpLibrary* lib, |
---|
55 | const char* path, |
---|
56 | const char* value, |
---|
57 | const char* id, |
---|
58 | int append ); |
---|
59 | void rpPutStringId (RpLibrary* lib, |
---|
60 | const char* path, |
---|
61 | const char* value, |
---|
62 | const char* id, |
---|
63 | int append ); |
---|
64 | void rpPutString (RpLibrary* lib, |
---|
65 | const char* path, |
---|
66 | const char* value, |
---|
67 | int append ); |
---|
68 | void rpPutDoubleId (RpLibrary* lib, |
---|
69 | const char* path, |
---|
70 | double value, |
---|
71 | const char* id, |
---|
72 | int append ); |
---|
73 | void rpPutDouble (RpLibrary* lib, |
---|
74 | const char* path, |
---|
75 | double value, |
---|
76 | int append ); |
---|
77 | |
---|
78 | const char* rpXml (RpLibrary* lib); |
---|
79 | |
---|
80 | const char* rpNodeComp (RpLibrary* node); |
---|
81 | const char* rpNodeType (RpLibrary* node); |
---|
82 | const char* rpNodeId (RpLibrary* node); |
---|
83 | |
---|
84 | void rpResult (RpLibrary* lib); |
---|
85 | |
---|
86 | #ifdef __cplusplus |
---|
87 | } |
---|
88 | #endif |
---|