NSVD Reader  0.0.1
result.hpp
Go to the documentation of this file.
1 
5 /*
6  * These codes are licensed under CC0.
7  * http://creativecommons.org/publicdomain/zero/1.0/
8  */
9 #ifndef __RESULT_HPP__
10 #define __RESULT_HPP__
11 
12 namespace nodamushi{
13 namespace visitor{
14 
15 enum class result
16 {
18  CONTINUE,
20  BREAK,
22  SKIP
23 };
24 
25 } // end namespace visitor
26 }// end namespace nodamushi
27 
28 
29 #include <ostream>
30 namespace std{
31 std::ostream& operator<<(std::ostream& out,const nodamushi::visitor::result& r)
32 {
33  using namespace nodamushi::visitor;
34  switch(r){
35  case result::CONTINUE: out << "continue";break;
36  case result::BREAK: out << "break";break;
37  case result::SKIP: out << "skip";break;
38  }
39  return out;
40 }
41 } // end namespace std
42 #endif // __RESULT_HPP__
ostream & operator<<(std::ostream &os, const ::nodamushi::svd::Access &value)
Definition: Access.hpp:144
Definition: Access.hpp:143
stop visitor processing
finish the current processing hierarchy
continue visitor processing