Exemplo n.º 1
0
 def eof_node_w(en_p, err_p):
     en = EOFNode.create_from_ptr(en_p)
     err = Error(err_p)
     try:
         try:
             self.visit_eof_node(en)
         except AttributeError:
             pass
         return 0
     except GTError, errmsg:
         err.set(str(errmsg))
         return -1
Exemplo n.º 2
0
 def next_w(nodepp, err):
     error = Error(err)
     try:
         nextnode = self.next()
         if nextnode:
             nodepp[0] = nextnode.gn
         else:
             nodepp[0] = None
         return 0
     except Error, errmsg:
         error.set(str(errmsg))
         return -1
Exemplo n.º 3
0
 def next_w(nodepp, err):
     error = Error(err)
     try:
         nextnode = self.next()
         if nextnode:
             nodepp[0] = nextnode.gn
         else:
             nodepp[0] = None
         return 0
     except GTError as errmsg:
         error.set(str(errmsg))
         return -1
Exemplo n.º 4
0
 def region_node_w(rn_p, err_p):
     rn = RegionNode.create_from_ptr(rn_p)
     err = Error(err_p)
     try:
         try:
             self.visit_region_node(rn)
         except AttributeError:
             pass
         return 0
     except GTError, errmsg:
         err.set(str(errmsg))
         return -1
Exemplo n.º 5
0
 def comment_node_w(cn_p, err_p):
     cn = CommentNode.create_from_ptr(cn_p)
     err = Error(err_p)
     try:
         try:
             self.visit_comment_node(cn)
         except AttributeError:
             pass
         return 0
     except GTError, errmsg:
         err.set(str(errmsg))
         return -1
Exemplo n.º 6
0
 def feature_node_w(fn_p, err_p):
     fn = FeatureNode.create_from_ptr(fn_p)
     err = Error(err_p)
     try:
         try:
             self.visit_feature_node(fn)
         except AttributeError:
             pass
         return 0
     except GTError, errmsg:
         err.set(str(errmsg))
         return -1
Exemplo n.º 7
0
 def sequence_node_w(sn_p, err_p):
     sn = SequenceNode.create_from_ptr(sn_p)
     err = Error(err_p)
     try:
         try:
             self.visit_sequence_node(sn)
         except AttributeError:
             pass
         return 0
     except GTError, errmsg:
         err.set(str(errmsg))
         return -1
Exemplo n.º 8
0
 def region_node_w(rn_p, err_p):
     rn = RegionNode.create_from_ptr(rn_p)
     err = Error(err_p)
     try:
         try:
             self.visit_region_node(rn)
         except AttributeError:
             pass
         return 0
     except GTError, errmsg:
         err.set(str(errmsg))
         return -1
Exemplo n.º 9
0
 def meta_node_w(mn_p, err_p):
     mn = EOFNode.create_from_ptr(mn_p)
     err = Error(err_p)
     try:
         try:
             self.visit_meta_node(mn)
         except AttributeError:
             pass
         return 0
     except GTError, errmsg:
         err.set(str(errmsg))
         return -1
Exemplo n.º 10
0
 def comment_node_w(cn_p, err_p):
     cn = CommentNode.create_from_ptr(cn_p)
     err = Error(err_p)
     try:
         try:
             self.visit_comment_node(cn)
         except AttributeError:
             pass
         return 0
     except GTError, errmsg:
         err.set(str(errmsg))
         return -1
Exemplo n.º 11
0
 def sequence_node_w(sn_p, err_p):
     sn = SequenceNode.create_from_ptr(sn_p)
     err = Error(err_p)
     try:
         try:
             self.visit_sequence_node(sn)
         except AttributeError:
             pass
         return 0
     except GTError, errmsg:
         err.set(str(errmsg))
         return -1
Exemplo n.º 12
0
 def feature_node_w(fn_p, err_p):
     fn = FeatureNode.create_from_ptr(fn_p)
     err = Error(err_p)
     try:
         try:
             self.visit_feature_node(fn)
         except AttributeError:
             pass
         return 0
     except GTError, errmsg:
         err.set(str(errmsg))
         return -1
Exemplo n.º 13
0
 def meta_node_w(mn_p, err_p):
     mn = EOFNode.create_from_ptr(mn_p)
     err = Error(err_p)
     try:
         try:
             self.visit_meta_node(mn)
         except AttributeError:
             pass
         return 0
     except GTError, errmsg:
         err.set(str(errmsg))
         return -1
Exemplo n.º 14
0
 def eof_node_w(en_p, err_p):
     en = EOFNode.create_from_ptr(en_p)
     err = Error(err_p)
     try:
         try:
             self.visit_eof_node(en)
         except AttributeError:
             pass
         return 0
     except GTError, errmsg:
         err.set(str(errmsg))
         return -1
Exemplo n.º 15
0
 def eof_node_w(en_p, err_p):
     en = EOFNode.create_from_ptr(en_p)
     err = Error(err_p)
     try:
         try:
             self.visit_eof_node(en)
         except AttributeError:
             pass
         return 0
     except GTError:
         import sys
         errmsg = sys.exc_info()[1]
         err.set(str(errmsg))
         return -1
Exemplo n.º 16
0
 def eof_node_w(en_p, err_p):
     en = EOFNode.create_from_ptr(en_p)
     err = Error(err_p)
     try:
         try:
             self.visit_eof_node(en)
         except AttributeError:
             pass
         return 0
     except GTError:
         import sys
         errmsg = sys.exc_info()[1]
         err.set(str(errmsg))
         return -1
Exemplo n.º 17
0
 def next_w(nodepp, err):
     error = Error(err)
     try:
         nextnode = self.next()
         if nextnode:
             nodepp[0] = nextnode.gn
         else:
             nodepp[0] = None
         return 0
     except Error:
         import sys
         errmsg = sys.exc_info()[1]
         error.set(str(errmsg))
         return -1
Exemplo n.º 18
0
        def next_w(nodepp, err):
            error = Error(err)
            try:
                nextnode = self.next()
                if nextnode:
                    nodepp[0] = nextnode.gn
                else:
                    nodepp[0] = None
                return 0
            except Error:
                import sys

                errmsg = sys.exc_info()[1]
                error.set(str(errmsg))
                return -1