From dac4b24141b62d1562f8650d760e3b0ae803e402 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Voc=C5=AF?= Date: Mon, 16 Apr 2007 10:30:41 +0000 Subject: [PATCH] * static methods to retrieve event and status names --- org.glite.lb.client-interface/interface/Event.h.T | 10 ++++++++++ org.glite.lb.client-interface/interface/JobStatus.h.T | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/org.glite.lb.client-interface/interface/Event.h.T b/org.glite.lb.client-interface/interface/Event.h.T index 3e1d52b..b337531 100644 --- a/org.glite.lb.client-interface/interface/Event.h.T +++ b/org.glite.lb.client-interface/interface/Event.h.T @@ -235,6 +235,16 @@ public: */ const std::vector > & getAttrs(void) const; + /** Event name. + * + * Retrieves string representation of the event type. + * \param[in] type Symbolic name of the event type. + * \returns String name of the event. + * \throw Exception Invalid event type. + * + */ + static const std::string getEventName(Type type); + private: static void destroyFlesh(void *); CountRef *flesh; diff --git a/org.glite.lb.client-interface/interface/JobStatus.h.T b/org.glite.lb.client-interface/interface/JobStatus.h.T index 5acde1a..94a1866 100644 --- a/org.glite.lb.client-interface/interface/JobStatus.h.T +++ b/org.glite.lb.client-interface/interface/JobStatus.h.T @@ -220,6 +220,16 @@ public: * \returns List of attributes. */ const std::vector >& getAttrs(void) const; + + /** Get name of state. + * + * Retrieve string representation of symbolic job state. + * \param[in] state Symbolic state name. + * \returns String state name. + * \throw Exception Invalid state. + * + */ + static const std::string &getStateName(Code state); /** Default constructor. * -- 1.8.2.3