* make getAttrName static method
authorMichal Voců <michal@ruk.cuni.cz>
Fri, 13 Apr 2007 14:04:52 +0000 (14:04 +0000)
committerMichal Voců <michal@ruk.cuni.cz>
Fri, 13 Apr 2007 14:04:52 +0000 (14:04 +0000)
org.glite.lb.client-interface/interface/Event.h.T
org.glite.lb.client-interface/interface/JobStatus.h.T
org.glite.lb.client/src/Event.cpp.T
org.glite.lb.client/src/JobStatus.cpp.T

index 714a7c0..3e1d52b 100644 (file)
@@ -222,10 +222,10 @@ public:
         * Retrieves string representation of the attribute name.
         * \param[in] name Symbolic name of the attribute.
         * \returns String name of the attribute.
-        * \throw Exception Invalid event type or attribute not
-        * defined for this event.
+        * \throw Exception Invalid attribute name.
+        * 
         */
-       const std::string & getAttrName(Attr name) const;
+       static const std::string & getAttrName(Attr name);
 
        /** List of attributes and types valid for this instance.
         *
index f183a33..5acde1a 100644 (file)
@@ -210,7 +210,7 @@ public:
         * \returns Name of attribute.
         * \throws LoggingException Invalid attribute name.
         */
-       const std::string& getAttrName(Attr name) const;
+       static const std::string& getAttrName(Attr name);
   
        /** List of attributes and their types valid for this
         * instance.
index 6e3ac3e..0402a80 100644 (file)
@@ -269,9 +269,8 @@ std::string const attr_names[Event::ATTR_MAX] = {
 @@@}
 };
 
-
 const std::string & 
-Event::getAttrName(Attr attr) const
+Event::getAttrName(Attr attr)
 {
   if (attr<0 || attr>=ATTR_MAX) {
     STACK_ADD;
index df9609b..62559e0 100644 (file)
@@ -414,7 +414,7 @@ static std::string const attr_names[JobStatus::ATTR_MAX] = {
 };
 
 const std::string & 
-JobStatus::getAttrName(JobStatus::Attr attr) const
+JobStatus::getAttrName(JobStatus::Attr attr)
 {
   if (attr<0 || attr>=ATTR_MAX) {
     STACK_ADD;