RMF
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
15RMF_ENABLE_WARNINGS
16
17namespace RMF {
18class NodeConstHandle;
19class FileConstHandle;
20
21/** \name Showing the hierarchy
22
23These functions print out the hierarchy with various extra information
24for each node. Each prints out an ASCII tree designed for human inspection.
25@{ */
26
27/** Print out just the node names and types.
28 */
29RMFEXPORT void show_hierarchy(NodeConstHandle root,
30 std::ostream& out);
31RMFEXPORT void show_hierarchy(NodeConstHandle root);
32
33/** Print out all attributes for each node for the current frame.
34 */
36 std::ostream& out);
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 */
43 bool verbose = false,
44 std::ostream& out = std::cout);
45
46/** Show the frame hierarchy rather than the node hierarchy. */
47RMFEXPORT void show_frames(FileConstHandle fh, std::ostream& out = std::cout);
48
49/** @} */
50} /* namespace RMF */
51
52RMF_DISABLE_WARNINGS
53
54#endif /* RMF_NODE_SHOW_HIERARCHY_H */
A handle for a read-only RMF file.
A handle for a particular node in a read-only hierarchy.
The namespace for all functionality in the library.
void show_frames(FileConstHandle fh, std::ostream &out=std::cout)
void show_hierarchy_with_values(NodeConstHandle root, std::ostream &out)
void show_hierarchy_with_decorators(NodeConstHandle root, bool verbose=false, std::ostream &out=std::cout)
void show_hierarchy(NodeConstHandle root, std::ostream &out)