(file) Return to Attribute.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/Attribute.cpp between version 1.3 and 1.4

version 1.3, 2005/02/05 22:59:23 version 1.4, 2005/03/22 22:02:50
Line 46 
Line 46 
  
 Attribute::~Attribute() Attribute::~Attribute()
 { {
     if(_vals.size()) {      if (_vals.size())
       {
         _vals.clear();         _vals.clear();
     }     }
 } }
  
 const Array <String> &  const Array<String>& Attribute::getValues() const
 Attribute::getValues() const  
 { {
     return _vals;     return _vals;
 } }
  
 const String &  const String& Attribute::getTag() const
 Attribute::getTag() const  
 { {
     return _tag;     return _tag;
 } }
  
 void  void Attribute::addValue(const String& value)
 Attribute::addValue(const String & value)  
 { {
     _vals.append(value);     _vals.append(value);
 } }
  
 PEGASUS_STD(ostream)& operator<<(PEGASUS_STD(ostream)& os, const Attribute& attr)  PEGASUS_STD(ostream)& operator<<(
       PEGASUS_STD(ostream)& os,
       const Attribute& attr)
 { {
     os << attr.getTag();     os << attr.getTag();
     Array <String> vals = attr.getValues();     Array <String> vals = attr.getValues();
     for(int i = 0; i < vals.size(); i++) {      for (int i = 0; i < vals.size(); i++)
         if(i == 0) {      {
           if(i == 0)
           {
             os << " = ";             os << " = ";
         } else {          }
           else
           {
             os << " | ";             os << " | ";
         }         }
         os << vals[i];         os << vals[i];


Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2