lib/client/visitorResult.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef EQ_VISITORRESULT_H
00019 #define EQ_VISITORRESULT_H
00020
00021 #include <iostream>
00022
00023 namespace eq
00024 {
00026 enum VisitorResult
00027 {
00028 TRAVERSE_CONTINUE,
00029 TRAVERSE_TERMINATE,
00030 TRAVERSE_PRUNE
00031 };
00032
00033 inline std::ostream& operator << ( std::ostream& os,
00034 const VisitorResult result )
00035 {
00036 switch( result )
00037 {
00038 case TRAVERSE_CONTINUE:
00039 os << "continue";
00040 break;
00041 case TRAVERSE_TERMINATE:
00042 os << "terminate";
00043 break;
00044 case TRAVERSE_PRUNE:
00045 os << "prune";
00046 break;
00047 default:
00048 os << "ERROR";
00049 break;
00050 }
00051 return os;
00052 }
00053 }
00054 #endif // EQ_VISITORRESULT_H