make event type codes come directly from C API
authorMichal Voců <michal@ruk.cuni.cz>
Tue, 19 Jun 2007 13:16:40 +0000 (13:16 +0000)
committerMichal Voců <michal@ruk.cuni.cz>
Tue, 19 Jun 2007 13:16:40 +0000 (13:16 +0000)
org.glite.lb.client-interface/interface/Event.h.T

index 4e293ca..f60dfdc 100644 (file)
@@ -48,10 +48,10 @@ public:
        for my $e ($event->getTypesOrdered) {
                my $u = uc $e;
                my $c = getTypeComment $event $e;
-               gen "\t\t$u,\t/**< $c */\n";
+               gen "\t\t$u = EDG_WLL_EVENT_$u,\t/**< $c */\n";
        }
 @@@}
-               TYPE_MAX /**< Limit for checking type validity. */
+               TYPE_MAX = EDG_WLL_EVENT__LAST /**< Limit for checking type validity. */
        };
 
        /** Event attribute symbolic identifier. 
@@ -268,6 +268,7 @@ public:
        static const std::string getEventName(Type type);
 
 private:
+       std::string     my_name;
        static void     destroyFlesh(void *);
        CountRef<Event> *flesh;
 };