37 #ifndef FIFF_DIR_NODE_H
38 #define FIFF_DIR_NODE_H
55 #include <QSharedPointer>
56 #include <QStringList>
76 typedef QSharedPointer<FiffDirNode>
SPtr;
77 typedef QSharedPointer<const FiffDirNode>
ConstSPtr;
112 static bool copy_tree(QSharedPointer<FiffStream>& p_pStreamIn,
const FiffId& in_id,
const QList< QSharedPointer<FiffDirNode> >& p_Nodes, QSharedPointer<FiffStream>& p_pStreamOut);
122 return this->type < 0;
136 QList<FiffDirNode::SPtr> dir_tree_find(fiff_int_t p_kind)
const;
153 inline bool find_tag(QSharedPointer<FiffStream>& p_pStream, fiff_int_t findkind, QSharedPointer<FiffTag>& p_pTag)
const;
170 bool find_tag(
FiffStream* p_pStream, fiff_int_t findkind, QSharedPointer<FiffTag>& p_pTag)
const;
180 bool has_tag(fiff_int_t findkind);
190 bool has_kind(fiff_int_t p_kind)
const;
199 void print(
int indent)
const;
208 static void explain_block(
int kind);
217 static void explain (
int kind);
226 static const char *get_tag_explanation (
int kind);
234 fiff_int_t nent()
const;
242 fiff_int_t nchild()
const;
247 QList<FiffDirEntry::SPtr>
dir;
280 inline bool FiffDirNode::find_tag(QSharedPointer<FiffStream> &p_pStream, fiff_int_t findkind, QSharedPointer<FiffTag> &p_pTag)
const
282 return find_tag(p_pStream.data(), findkind, p_pTag);
286 #endif // FIFF_DIR_NODE_H