00001 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ 00002 /* 00003 * Copyright (c) 2008 INRIA 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License version 2 as 00007 * published by the Free Software Foundation; 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00017 * 00018 * Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> 00019 */ 00020 #include "attribute.h" 00021 #include "log.h" 00022 #include "fatal-error.h" 00023 #include <sstream> 00024 00025 NS_LOG_COMPONENT_DEFINE ("AttributeValue"); 00026 00027 namespace ns3 { 00028 00029 AttributeValue::AttributeValue () 00030 {} 00031 AttributeValue::~AttributeValue () 00032 {} 00033 00034 00035 AttributeAccessor::AttributeAccessor () 00036 {} 00037 AttributeAccessor::~AttributeAccessor () 00038 {} 00039 00040 AttributeChecker::AttributeChecker () 00041 {} 00042 AttributeChecker::~AttributeChecker () 00043 {} 00044 00045 EmptyAttributeValue::EmptyAttributeValue () 00046 {} 00047 Ptr<AttributeValue> 00048 EmptyAttributeValue::Copy (void) const 00049 { 00050 return Create<EmptyAttributeValue> (); 00051 } 00052 std::string 00053 EmptyAttributeValue::SerializeToString (Ptr<const AttributeChecker> checker) const 00054 { 00055 return ""; 00056 } 00057 bool 00058 EmptyAttributeValue::DeserializeFromString (std::string value, Ptr<const AttributeChecker> checker) 00059 { 00060 return true; 00061 } 00062 00063 00064 } // namespace ns3