RMF
Toggle main menu visibility
show_hierarchy.h
Go to the documentation of this file.
1
/**
2
* \file RMF/show_hierarchy.h
3
* \brief Functions to show the hierarchy.
4
*
5
* Copyright 2007-2022 IMP Inventors. All rights reserved.
6
*
7
*/
8
9
#ifndef RMF_NODE_SHOW_HIERARCHY_H
10
#define RMF_NODE_SHOW_HIERARCHY_H
11
12
#include <RMF/config.h>
13
#include <iostream>
14
15
RMF_ENABLE_WARNINGS
16
17
namespace
RMF
{
18
class
NodeConstHandle
;
19
class
FileConstHandle
;
20
21
/** \name Showing the hierarchy
22
23
These functions print out the hierarchy with various extra information
24
for each node. Each prints out an ASCII tree designed for human inspection.
25
@{ */
26
27
/** Print out just the node names and types.
28
*/
29
RMFEXPORT
void
show_hierarchy
(
NodeConstHandle
root,
30
std::ostream& out);
31
RMFEXPORT
void
show_hierarchy
(
NodeConstHandle
root);
32
33
/** Print out all attributes for each node for the current frame.
34
*/
35
RMFEXPORT
void
show_hierarchy_with_values
(
NodeConstHandle
root,
36
std::ostream& out);
37
RMFEXPORT
void
show_hierarchy_with_values
(
NodeConstHandle
root);
38
39
/** Print out the list of decorators that can be used to decorate each node
40
based on the current attributes in the loaded frame..
41
*/
42
RMFEXPORT
void
show_hierarchy_with_decorators
(
NodeConstHandle
root,
43
bool
verbose =
false
,
44
std::ostream& out = std::cout);
45
46
/** Show the frame hierarchy rather than the node hierarchy. */
47
RMFEXPORT
void
show_frames
(
FileConstHandle
fh, std::ostream& out = std::cout);
48
49
/** @} */
50
}
/* namespace RMF */
51
52
RMF_DISABLE_WARNINGS
53
54
#endif
/* RMF_NODE_SHOW_HIERARCHY_H */
RMF::FileConstHandle
A handle for a read-only RMF file.
Definition
FileConstHandle.h:78
RMF::NodeConstHandle
A handle for a particular node in a read-only hierarchy.
Definition
NodeConstHandle.h:86
RMF
The namespace for all functionality in the library.
Definition
BufferConstHandle.h:21
RMF::show_frames
void show_frames(FileConstHandle fh, std::ostream &out=std::cout)
RMF::show_hierarchy_with_values
void show_hierarchy_with_values(NodeConstHandle root, std::ostream &out)
RMF::show_hierarchy_with_decorators
void show_hierarchy_with_decorators(NodeConstHandle root, bool verbose=false, std::ostream &out=std::cout)
RMF::show_hierarchy
void show_hierarchy(NodeConstHandle root, std::ostream &out)