src/core/attribute.cc
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Sat, 04 Jul 2009 08:15:48 +0200
changeset 4654 2eaebe77d66b
parent 2948 858fc65447a5
permissions -rw-r--r--
Added tag ns-3.5 for changeset c975274c9707
mathieu@2581
     1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
mathieu@2581
     2
/*
mathieu@2581
     3
 * Copyright (c) 2008 INRIA
mathieu@2581
     4
 *
mathieu@2581
     5
 * This program is free software; you can redistribute it and/or modify
mathieu@2581
     6
 * it under the terms of the GNU General Public License version 2 as
mathieu@2581
     7
 * published by the Free Software Foundation;
mathieu@2581
     8
 *
mathieu@2581
     9
 * This program is distributed in the hope that it will be useful,
mathieu@2581
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
mathieu@2581
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
mathieu@2581
    12
 * GNU General Public License for more details.
mathieu@2581
    13
 *
mathieu@2581
    14
 * You should have received a copy of the GNU General Public License
mathieu@2581
    15
 * along with this program; if not, write to the Free Software
mathieu@2581
    16
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
mathieu@2581
    17
 *
mathieu@2581
    18
 * Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
mathieu@2581
    19
 */
mathieu@2438
    20
#include "attribute.h"
mathieu@2374
    21
#include "log.h"
mathieu@2397
    22
#include "fatal-error.h"
mathieu@2374
    23
#include <sstream>
mathieu@2374
    24
mathieu@2437
    25
NS_LOG_COMPONENT_DEFINE ("AttributeValue");
mathieu@2371
    26
mathieu@2371
    27
namespace ns3 {
mathieu@2371
    28
mathieu@2437
    29
AttributeValue::AttributeValue ()
mathieu@2371
    30
{}
mathieu@2437
    31
AttributeValue::~AttributeValue ()
mathieu@2374
    32
{}
mathieu@2374
    33
mathieu@2397
    34
mathieu@2436
    35
AttributeAccessor::AttributeAccessor ()
mathieu@2374
    36
{}
mathieu@2436
    37
AttributeAccessor::~AttributeAccessor ()
mathieu@2371
    38
{}
mathieu@2371
    39
mathieu@2427
    40
AttributeChecker::AttributeChecker ()
mathieu@2427
    41
{}
mathieu@2427
    42
AttributeChecker::~AttributeChecker ()
mathieu@2427
    43
{}
mathieu@2397
    44
mathieu@2965
    45
EmptyAttributeValue::EmptyAttributeValue ()
mathieu@2965
    46
{}
mathieu@2965
    47
Ptr<AttributeValue> 
mathieu@2965
    48
EmptyAttributeValue::Copy (void) const
mathieu@2965
    49
{
mathieu@2965
    50
  return Create<EmptyAttributeValue> ();
mathieu@2965
    51
}
mathieu@2965
    52
std::string 
mathieu@2965
    53
EmptyAttributeValue::SerializeToString (Ptr<const AttributeChecker> checker) const
mathieu@2965
    54
{
mathieu@2965
    55
  return "";
mathieu@2965
    56
}
mathieu@2965
    57
bool 
mathieu@2965
    58
EmptyAttributeValue::DeserializeFromString (std::string value, Ptr<const AttributeChecker> checker)
mathieu@2965
    59
{
mathieu@2965
    60
  return true;
mathieu@2965
    61
}
mathieu@2965
    62
mathieu@2965
    63
mathieu@2371
    64
} // namespace ns3