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