fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / FileIO / Util / OSGFileIOUtils.h
blob7441beebe0395681341eb73f7e2d7ea8e0275882
1 #ifndef _OSGFILEIOUTILS_H_
2 #define _OSGFILEIOUTILS_H_
3 #ifdef __sgi
4 #pragma once
5 #endif
7 // Headers
8 #include "OSGConfig.h"
9 #include "OSGFileIODef.h"
10 #include "OSGNode.h"
11 #include "OSGAction.h"
12 #include <vector>
14 OSG_BEGIN_NAMESPACE
16 class OSG_FILEIO_DLLMAPPING FileIONodeFinder
18 public:
20 FileIONodeFinder(void);
22 void traverse(NodeUnrecPtr root);
24 const std::vector<Node *> &getFoundNodes (void) const;
25 const std::vector<Node *> &getFoundNamedNodes (void) const;
26 const std::vector<Node *> &getFoundJoints (void) const;
27 const std::vector<Node *> &getFoundNamedJoints(void) const;
29 void setSearchName(std::string nodeName);
31 private:
33 Action::ResultE check(Node * &node);
35 std::vector<Node *> _FoundJoints;
36 std::vector<Node *> _FoundNamedJoints;
37 std::vector<Node *> _FoundNamedNodes;
38 std::vector<Node *> _FoundNodes;
39 std::string _SearchName;
43 OSG_END_NAMESPACE
45 #endif /* _OSGFILEIOUTILS_H_ */