Last change
on this file was
8311,
checked in by westram, 12 years ago
|
- splitted pseudo-module ps_pg_tree_functions.cxx into two headers
- some functions inline instead of static
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1.5 KB
|
Line | |
---|
1 | #ifndef PS_PG_TREE_FUNCTIONS_HXX |
---|
2 | #define PS_PG_TREE_FUNCTIONS_HXX |
---|
3 | |
---|
4 | #ifndef PS_DEFS_HXX |
---|
5 | #include "ps_defs.hxx" |
---|
6 | #endif |
---|
7 | #ifndef ARBDB_H |
---|
8 | #include <arbdb.h> |
---|
9 | #endif |
---|
10 | |
---|
11 | // API for Probe-Group-Database format |
---|
12 | |
---|
13 | // db-structure of group_tree: |
---|
14 | // |
---|
15 | // <root> |
---|
16 | // | |
---|
17 | // | |
---|
18 | // "group_tree" |
---|
19 | // | |
---|
20 | // | |
---|
21 | // "node" <more nodes...> |
---|
22 | // | | | |
---|
23 | // | | | |
---|
24 | // | | "group" (contains all probes for this group; may be missing) |
---|
25 | // | | |
---|
26 | // | "num" (contains species-number (created by PG_SpeciesName2SpeciesID)) |
---|
27 | // | |
---|
28 | // "node" <more nodes...> |
---|
29 | // |
---|
30 | // Notes: - the "node"s contained in the path from "group_tree" to any "group" |
---|
31 | // describes the members of the group |
---|
32 | |
---|
33 | |
---|
34 | |
---|
35 | inline GBDATA *PG_get_first_probe(GBDATA *pb_group) { |
---|
36 | return GB_entry(pb_group, "probe"); |
---|
37 | } |
---|
38 | |
---|
39 | inline GBDATA *PG_get_next_probe(GBDATA *pb_probe) { |
---|
40 | ps_assert(GB_has_key(pb_probe, "probe")); |
---|
41 | return GB_nextEntry(pb_probe); |
---|
42 | } |
---|
43 | |
---|
44 | inline const char *PG_read_probe(GBDATA *pb_probe) { |
---|
45 | return GB_read_char_pntr(pb_probe); |
---|
46 | } |
---|
47 | |
---|
48 | inline GBDATA *PS_get_first_node(GBDATA *pb_nodecontainer) { |
---|
49 | return GB_entry(pb_nodecontainer, "node"); |
---|
50 | } |
---|
51 | |
---|
52 | inline GBDATA *PS_get_next_node(GBDATA *pb_node) { |
---|
53 | ps_assert(GB_has_key(pb_node, "node")); |
---|
54 | return GB_nextEntry(pb_node); |
---|
55 | } |
---|
56 | |
---|
57 | #else |
---|
58 | #error ps_pg_tree_functions.hxx included twice |
---|
59 | #endif // PS_PG_TREE_FUNCTIONS_HXX |
---|
Note: See
TracBrowser
for help on using the repository browser.