Files
unison/src/core/attribute.cc

65 lines
1.6 KiB
C++
Raw Normal View History

2008-03-10 00:38:48 +01:00
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2008 INRIA
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
*/
2008-02-20 21:45:42 +01:00
#include "attribute.h"
2008-01-31 15:10:21 +01:00
#include "log.h"
#include "fatal-error.h"
2008-01-31 15:10:21 +01:00
#include <sstream>
2008-02-20 21:17:34 +01:00
NS_LOG_COMPONENT_DEFINE ("AttributeValue");
2008-01-30 17:28:18 +01:00
namespace ns3 {
2008-02-20 21:17:34 +01:00
AttributeValue::AttributeValue ()
2008-01-31 15:10:21 +01:00
{}
2008-02-20 21:17:34 +01:00
AttributeValue::~AttributeValue ()
2008-01-31 15:10:21 +01:00
{}
AttributeAccessor::AttributeAccessor ()
2008-01-31 15:10:21 +01:00
{}
AttributeAccessor::~AttributeAccessor ()
{}
2008-01-31 15:10:21 +01:00
AttributeChecker::AttributeChecker ()
{}
AttributeChecker::~AttributeChecker ()
{}
EmptyAttributeValue::EmptyAttributeValue ()
{}
Ptr<AttributeValue>
EmptyAttributeValue::Copy (void) const
2008-01-31 15:10:21 +01:00
{
return Create<EmptyAttributeValue> ();
2008-01-31 15:10:21 +01:00
}
std::string
EmptyAttributeValue::SerializeToString (Ptr<const AttributeChecker> checker) const
2008-01-31 15:10:21 +01:00
{
return "";
2008-01-31 15:10:21 +01:00
}
bool
EmptyAttributeValue::DeserializeFromString (std::string value, Ptr<const AttributeChecker> checker)
2008-01-31 15:10:21 +01:00
{
return true;
2008-01-31 15:10:21 +01:00
}
2008-01-30 17:28:18 +01:00
} // namespace ns3