summaryrefslogtreecommitdiff
path: root/ACEXML/compass/ConfigValue.cpp
blob: 7c495947cb9daaf5484ad2ed725e909765ccb9e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// $Id$

#include "ACEXML/compass/ConfigValue.h"

using namespace Deployment;

ConfigValue::ConfigValue()
  : name_(), value_()
{

}

ConfigValue::~ConfigValue()
{
  delete this->name_;
  delete this->value_;
}

ConfigValue::ConfigValue (const ConfigValue& config)
{
  if (*this != config)
    {
      this->name_ = config.name_;
      this->value_ = config.value_;
    }
  return *this;
}

ConfigValue&
ConfigValue::operator= (const ConfigValue& config)
{
  this->name_ = config.name_;
  this->value_ = config.value_;
  return *this;
}

int
ConfigValue::operator== (const ConfigValue& config)
{
  return (this->name_ == config.name_ && this->value_ == config.value_);
}