2007-12-02 20:54:51 +00:00
|
|
|
// Cyphesis Online RPG Server and AI Engine
|
|
|
|
|
// Copyright (C) 2007 Alistair Riddoch
|
|
|
|
|
//
|
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
|
// the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
|
|
2009-02-02 Al Riddoch <alriddoch@googlemail.com>
* common/Identified.cpp, common/Identified.h:
Flatten down the base classes into one called Router.
* client/CharacterClient.cpp, client/CreatorClient.cpp,
rulesets/BaseMind.cpp, rulesets/Character.cpp,
rulesets/Creator.cpp, rulesets/Entity.cpp,
rulesets/LocatedEntity.cpp, rulesets/MemEntity.cpp,
rulesets/Plant.cpp, rulesets/Stackable.cpp,
rulesets/Thing.cpp, rulesets/World.cpp,
server/Account.cpp, server/Admin.cpp,
server/Connection.cpp, server/ExternalMind.cpp,
server/Lobby.cpp, server/Master.cpp,
server/Peer.cpp, server/Player.cpp,
server/ServerRouting.cpp, server/SlaveClientConnection.cpp,
server/TrustedConnection.cpp, tests/LocatedEntitytest.cpp,
tests/ThingupdatePropertiestest.cpp: Update all the operation
routing classes to use the modified base class correctly.
2009-02-02 02:28:45 +00:00
|
|
|
// $Id$
|
2007-12-02 20:54:51 +00:00
|
|
|
|
2011-02-15 09:30:46 +00:00
|
|
|
#ifdef NDEBUG
|
|
|
|
|
#undef NDEBUG
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef DEBUG
|
|
|
|
|
#define DEBUG
|
|
|
|
|
#endif
|
|
|
|
|
|
2009-05-06 19:20:08 +01:00
|
|
|
#include "EntityExerciser.h"
|
2013-01-19 00:51:05 +00:00
|
|
|
#include "TestBase.h"
|
2009-05-06 19:20:08 +01:00
|
|
|
|
2007-12-02 20:54:51 +00:00
|
|
|
#include "rulesets/LocatedEntity.h"
|
2010-03-26 01:57:15 +00:00
|
|
|
|
|
|
|
|
#include "rulesets/AtlasProperties.h"
|
2009-05-06 22:45:30 +01:00
|
|
|
#include "rulesets/Script.h"
|
2007-12-02 20:54:51 +00:00
|
|
|
|
|
|
|
|
#include <cassert>
|
|
|
|
|
|
2011-09-29 20:59:14 +01:00
|
|
|
using Atlas::Message::Element;
|
2007-12-02 20:54:51 +00:00
|
|
|
using Atlas::Message::ListType;
|
2011-09-29 20:59:14 +01:00
|
|
|
using Atlas::Message::MapType;
|
2007-12-02 20:54:51 +00:00
|
|
|
|
2013-01-19 00:51:05 +00:00
|
|
|
class LocatedEntitytest : public Cyphesis::TestBase
|
2009-05-06 19:20:08 +01:00
|
|
|
{
|
2013-01-19 00:51:05 +00:00
|
|
|
private:
|
|
|
|
|
LocatedEntity * m_entity;
|
|
|
|
|
public:
|
|
|
|
|
LocatedEntitytest();
|
2009-05-06 19:20:08 +01:00
|
|
|
|
2013-01-19 00:51:05 +00:00
|
|
|
void setup();
|
|
|
|
|
void teardown();
|
|
|
|
|
|
2013-01-19 01:32:38 +00:00
|
|
|
void test_setProperty();
|
2013-01-19 00:51:05 +00:00
|
|
|
void test_coverage();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
LocatedEntitytest::LocatedEntitytest()
|
|
|
|
|
{
|
2013-01-19 01:32:38 +00:00
|
|
|
ADD_TEST(LocatedEntitytest::test_setProperty);
|
2013-01-19 00:51:05 +00:00
|
|
|
ADD_TEST(LocatedEntitytest::test_coverage);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void LocatedEntitytest::setup()
|
|
|
|
|
{
|
|
|
|
|
m_entity = new LocatedEntityTest("1", 1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void LocatedEntitytest::teardown()
|
|
|
|
|
{
|
|
|
|
|
delete m_entity;
|
|
|
|
|
}
|
|
|
|
|
|
2013-01-19 01:32:38 +00:00
|
|
|
void LocatedEntitytest::test_setProperty()
|
|
|
|
|
{
|
|
|
|
|
std::string test_property("test_property");
|
|
|
|
|
ASSERT_TRUE(m_entity->m_properties.find(test_property) ==
|
|
|
|
|
m_entity->m_properties.end());
|
|
|
|
|
|
|
|
|
|
PropertyBase * tp = new SoftProperty;
|
|
|
|
|
|
|
|
|
|
m_entity->setProperty(test_property, tp);
|
|
|
|
|
|
|
|
|
|
ASSERT_TRUE(m_entity->m_properties.find(test_property) !=
|
|
|
|
|
m_entity->m_properties.end());
|
|
|
|
|
}
|
|
|
|
|
|
2013-01-19 00:51:05 +00:00
|
|
|
void LocatedEntitytest::test_coverage()
|
|
|
|
|
{
|
|
|
|
|
m_entity->setScript(new Script());
|
2009-05-06 22:45:30 +01:00
|
|
|
// Installing a second one should delete the first.
|
2013-01-19 00:51:05 +00:00
|
|
|
m_entity->setScript(new Script());
|
2009-05-06 22:45:30 +01:00
|
|
|
|
2013-01-19 00:51:05 +00:00
|
|
|
m_entity->onContainered();
|
|
|
|
|
m_entity->onUpdated();
|
2009-05-06 22:45:30 +01:00
|
|
|
|
2013-01-19 00:51:05 +00:00
|
|
|
EntityExerciser ee(*m_entity);
|
2009-05-06 19:20:08 +01:00
|
|
|
// Throw an op of every type at the entity
|
|
|
|
|
ee.runOperations();
|
|
|
|
|
|
|
|
|
|
// Subscribe the entity to every class of op
|
|
|
|
|
std::set<std::string> opNames;
|
|
|
|
|
ee.addAllOperations(opNames);
|
|
|
|
|
|
|
|
|
|
std::set<std::string> attrNames;
|
|
|
|
|
attrNames.insert("id");
|
|
|
|
|
|
|
|
|
|
// Make sure we have all the default attributes
|
|
|
|
|
assert(ee.checkAttributes(attrNames));
|
|
|
|
|
|
|
|
|
|
attrNames.insert("test_int");
|
|
|
|
|
attrNames.insert("test_float");
|
|
|
|
|
attrNames.insert("test_list_string");
|
|
|
|
|
attrNames.insert("test_list_int");
|
|
|
|
|
attrNames.insert("test_list_float");
|
|
|
|
|
attrNames.insert("test_map_string");
|
|
|
|
|
attrNames.insert("test_map_int");
|
|
|
|
|
attrNames.insert("test_map_float");
|
|
|
|
|
|
|
|
|
|
// Make sure we don't have the test attributes yet
|
|
|
|
|
assert(!ee.checkAttributes(attrNames));
|
|
|
|
|
|
|
|
|
|
// Add the test attributes
|
2013-01-19 00:51:05 +00:00
|
|
|
m_entity->setAttr("test_int", 1);
|
|
|
|
|
m_entity->setAttr("test_float", 1.f);
|
|
|
|
|
m_entity->setAttr("test_list_string", "test_value");
|
|
|
|
|
m_entity->setAttr("test_list_int", ListType(1, 1));
|
|
|
|
|
m_entity->setAttr("test_list_float", ListType(1, 1.f));
|
|
|
|
|
m_entity->setAttr("test_map_string", ListType(1, "test_value"));
|
2009-05-06 19:20:08 +01:00
|
|
|
MapType test_map;
|
|
|
|
|
test_map["test_key"] = 1;
|
2013-01-19 00:51:05 +00:00
|
|
|
m_entity->setAttr("test_map_int", test_map);
|
2009-05-06 19:20:08 +01:00
|
|
|
test_map["test_key"] = 1.f;
|
2013-01-19 00:51:05 +00:00
|
|
|
m_entity->setAttr("test_map_float", test_map);
|
2009-05-06 19:20:08 +01:00
|
|
|
test_map["test_key"] = "test_value";
|
2013-01-19 00:51:05 +00:00
|
|
|
m_entity->setAttr("test_map_string", test_map);
|
2009-05-06 19:20:08 +01:00
|
|
|
|
|
|
|
|
// Make sure we have the test attributes now
|
|
|
|
|
assert(ee.checkAttributes(attrNames));
|
|
|
|
|
|
|
|
|
|
MapType entityAsAtlas;
|
|
|
|
|
|
2013-01-19 00:51:05 +00:00
|
|
|
m_entity->merge(entityAsAtlas);
|
2009-05-06 19:20:08 +01:00
|
|
|
|
|
|
|
|
// Throw an op of every type at the entity again now it is subscribed,
|
|
|
|
|
// and full of data.
|
|
|
|
|
ee.runOperations();
|
2009-05-06 22:45:30 +01:00
|
|
|
|
2009-05-06 19:20:08 +01:00
|
|
|
}
|
|
|
|
|
|
2007-12-02 20:54:51 +00:00
|
|
|
int main()
|
|
|
|
|
{
|
|
|
|
|
// Test constructor
|
|
|
|
|
{
|
2008-01-14 16:10:18 +00:00
|
|
|
new LocatedEntityTest("1", 1);
|
2007-12-02 20:54:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Test destructor
|
|
|
|
|
{
|
2008-01-14 16:10:18 +00:00
|
|
|
LocatedEntityTest * e = new LocatedEntityTest("1", 1);
|
2007-12-02 20:54:51 +00:00
|
|
|
delete e;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Test checkRef()
|
|
|
|
|
{
|
2008-01-14 16:10:18 +00:00
|
|
|
LocatedEntityTest * e = new LocatedEntityTest("1", 1);
|
2007-12-02 20:54:51 +00:00
|
|
|
|
|
|
|
|
assert(e->checkRef() == 0);
|
|
|
|
|
delete e;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Test incRef()
|
|
|
|
|
{
|
2008-01-14 16:10:18 +00:00
|
|
|
LocatedEntityTest * e = new LocatedEntityTest("1", 1);
|
2007-12-02 20:54:51 +00:00
|
|
|
|
|
|
|
|
e->incRef();
|
|
|
|
|
assert(e->checkRef() == 1);
|
|
|
|
|
delete e;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Test decRef()
|
|
|
|
|
{
|
2008-01-14 16:10:18 +00:00
|
|
|
LocatedEntityTest * e = new LocatedEntityTest("1", 1);
|
2007-12-02 20:54:51 +00:00
|
|
|
|
|
|
|
|
e->incRef();
|
|
|
|
|
e->decRef();
|
|
|
|
|
assert(e->checkRef() == 0);
|
|
|
|
|
delete e;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Test decRef()
|
|
|
|
|
{
|
2008-01-14 16:10:18 +00:00
|
|
|
LocatedEntityTest * e = new LocatedEntityTest("1", 1);
|
2007-12-02 20:54:51 +00:00
|
|
|
|
|
|
|
|
e->decRef();
|
|
|
|
|
// Enitity deleted - verified as not leaked
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Test setAttr()
|
|
|
|
|
{
|
2008-01-14 16:10:18 +00:00
|
|
|
LocatedEntityTest * e = new LocatedEntityTest("1", 1);
|
2007-12-02 20:54:51 +00:00
|
|
|
|
|
|
|
|
e->setAttr("foo", "bar");
|
|
|
|
|
e->decRef();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Test setAttr()
|
|
|
|
|
{
|
2008-01-14 16:10:18 +00:00
|
|
|
LocatedEntityTest * e = new LocatedEntityTest("1", 1);
|
2007-12-02 20:54:51 +00:00
|
|
|
|
|
|
|
|
e->setAttr("foo", "bar");
|
|
|
|
|
e->setAttr("foo", 23);
|
|
|
|
|
e->decRef();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Test getAttr()
|
|
|
|
|
{
|
2008-01-14 16:10:18 +00:00
|
|
|
LocatedEntityTest * e = new LocatedEntityTest("1", 1);
|
2007-12-02 20:54:51 +00:00
|
|
|
Atlas::Message::Element val;
|
|
|
|
|
|
2011-09-29 17:36:26 +01:00
|
|
|
int ret = e->getAttr("foo", val);
|
|
|
|
|
assert(ret == -1);
|
2007-12-02 20:54:51 +00:00
|
|
|
assert(val.isNone());
|
|
|
|
|
e->decRef();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Test getAttr()
|
|
|
|
|
{
|
2008-01-14 16:10:18 +00:00
|
|
|
LocatedEntityTest * e = new LocatedEntityTest("1", 1);
|
2007-12-02 20:54:51 +00:00
|
|
|
Atlas::Message::Element val;
|
|
|
|
|
|
|
|
|
|
e->setAttr("foo", "bar");
|
2011-09-29 17:36:26 +01:00
|
|
|
int ret = e->getAttr("foo", val);
|
|
|
|
|
assert(ret == 0);
|
2007-12-02 20:54:51 +00:00
|
|
|
assert(val.isString());
|
|
|
|
|
e->decRef();
|
|
|
|
|
}
|
|
|
|
|
|
2011-09-29 20:59:14 +01:00
|
|
|
// Test getAttrType()
|
|
|
|
|
{
|
|
|
|
|
LocatedEntityTest * e = new LocatedEntityTest("1", 1);
|
|
|
|
|
Atlas::Message::Element val;
|
|
|
|
|
|
|
|
|
|
int ret = e->getAttrType("foo", val, Element::TYPE_STRING);
|
|
|
|
|
assert(ret == -1);
|
|
|
|
|
assert(val.isNone());
|
|
|
|
|
e->decRef();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Test getAttrType()
|
|
|
|
|
{
|
|
|
|
|
LocatedEntityTest * e = new LocatedEntityTest("1", 1);
|
|
|
|
|
Atlas::Message::Element val;
|
|
|
|
|
|
|
|
|
|
int ret = e->getAttrType("id", val, Element::TYPE_STRING);
|
|
|
|
|
assert(ret == 0);
|
|
|
|
|
assert(val.isString());
|
|
|
|
|
e->decRef();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Test getAttrType()
|
|
|
|
|
{
|
|
|
|
|
LocatedEntityTest * e = new LocatedEntityTest("1", 1);
|
|
|
|
|
Atlas::Message::Element val;
|
|
|
|
|
|
|
|
|
|
int ret = e->getAttrType("id", val, Element::TYPE_FLOAT);
|
|
|
|
|
assert(ret != 0);
|
|
|
|
|
assert(val.isString());
|
|
|
|
|
e->decRef();
|
|
|
|
|
}
|
|
|
|
|
|
2007-12-02 20:54:51 +00:00
|
|
|
// Test hasAttr()
|
|
|
|
|
{
|
2008-01-14 16:10:18 +00:00
|
|
|
LocatedEntityTest * e = new LocatedEntityTest("1", 1);
|
2007-12-02 20:54:51 +00:00
|
|
|
Atlas::Message::Element val;
|
|
|
|
|
|
|
|
|
|
bool ret = e->hasAttr("foo");
|
|
|
|
|
assert(ret == false);
|
|
|
|
|
e->decRef();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Test hasAttr()
|
|
|
|
|
{
|
2008-01-14 16:10:18 +00:00
|
|
|
LocatedEntityTest * e = new LocatedEntityTest("1", 1);
|
2007-12-02 20:54:51 +00:00
|
|
|
Atlas::Message::Element val;
|
|
|
|
|
|
|
|
|
|
e->setAttr("foo", "bar");
|
|
|
|
|
bool ret = e->hasAttr("foo");
|
|
|
|
|
assert(ret == true);
|
|
|
|
|
e->decRef();
|
|
|
|
|
}
|
|
|
|
|
|
2013-01-19 00:51:05 +00:00
|
|
|
LocatedEntitytest t;
|
2007-12-02 20:54:51 +00:00
|
|
|
|
2013-01-19 00:51:05 +00:00
|
|
|
return t.run();
|
2007-12-02 20:54:51 +00:00
|
|
|
}
|
2010-03-26 01:57:15 +00:00
|
|
|
|
|
|
|
|
// stubs
|
|
|
|
|
|
2011-12-20 23:58:26 +00:00
|
|
|
#include "common/TypeNode.h"
|
|
|
|
|
|
2010-03-26 01:57:15 +00:00
|
|
|
namespace Atlas { namespace Objects { namespace Operation {
|
|
|
|
|
int EAT_NO = -1;
|
|
|
|
|
int NOURISH_NO = -1;
|
|
|
|
|
int SETUP_NO = -1;
|
|
|
|
|
int TICK_NO = -1;
|
|
|
|
|
} } }
|
|
|
|
|
|
|
|
|
|
Router::Router(const std::string & id, long intId) : m_id(id),
|
|
|
|
|
m_intId(intId)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Router::~Router()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Router::addToMessage(Atlas::Message::MapType & omap) const
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Router::addToEntity(const Atlas::Objects::Entity::RootEntity & ent) const
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Script::Script()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// \brief Script destructor
|
|
|
|
|
Script::~Script()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool Script::operation(const std::string & opname,
|
|
|
|
|
const Atlas::Objects::Operation::RootOperation & op,
|
|
|
|
|
OpVector & res)
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Script::hook(const std::string & function, LocatedEntity * entity)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2010-09-16 05:14:35 +01:00
|
|
|
Location::Location() : m_loc(0)
|
2010-03-26 01:57:15 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2011-09-16 18:30:22 +01:00
|
|
|
TypeNode::TypeNode(const std::string & name) : m_name(name), m_parent(0)
|
2010-03-26 01:57:15 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
IdProperty::IdProperty(const std::string & data) : PropertyBase(per_ephem),
|
|
|
|
|
m_data(data)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2011-09-29 17:36:26 +01:00
|
|
|
int IdProperty::get(Atlas::Message::Element & e) const
|
2010-03-26 01:57:15 +00:00
|
|
|
{
|
2011-09-29 20:59:14 +01:00
|
|
|
e = m_data;
|
2011-09-29 17:36:26 +01:00
|
|
|
return 0;
|
2010-03-26 01:57:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void IdProperty::set(const Atlas::Message::Element & e)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void IdProperty::add(const std::string & key,
|
|
|
|
|
Atlas::Message::MapType & ent) const
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void IdProperty::add(const std::string & key,
|
|
|
|
|
const Atlas::Objects::Entity::RootEntity & ent) const
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2013-01-07 23:03:25 +00:00
|
|
|
IdProperty * IdProperty::copy() const
|
|
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2010-03-26 01:57:15 +00:00
|
|
|
PropertyBase::PropertyBase(unsigned int flags) : m_flags(flags)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PropertyBase::~PropertyBase()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2013-02-13 00:45:36 +00:00
|
|
|
void PropertyBase::install(LocatedEntity *, const std::string & name)
|
2010-03-26 01:57:15 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2013-01-17 10:17:07 +00:00
|
|
|
void PropertyBase::apply(LocatedEntity *)
|
2010-03-26 01:57:15 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void PropertyBase::add(const std::string & s,
|
|
|
|
|
Atlas::Message::MapType & ent) const
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void PropertyBase::add(const std::string & s,
|
|
|
|
|
const Atlas::Objects::Entity::RootEntity & ent) const
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2013-01-17 10:17:07 +00:00
|
|
|
HandlerResult PropertyBase::operation(LocatedEntity *,
|
2013-01-03 23:17:51 +00:00
|
|
|
const Operation &,
|
|
|
|
|
OpVector &)
|
|
|
|
|
{
|
|
|
|
|
return OPERATION_IGNORED;
|
|
|
|
|
}
|
|
|
|
|
|
2010-03-26 01:57:15 +00:00
|
|
|
SoftProperty::SoftProperty()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SoftProperty::SoftProperty(const Atlas::Message::Element & data) :
|
|
|
|
|
PropertyBase(0), m_data(data)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2011-09-29 17:36:26 +01:00
|
|
|
int SoftProperty::get(Atlas::Message::Element & val) const
|
2010-03-26 01:57:15 +00:00
|
|
|
{
|
|
|
|
|
val = m_data;
|
2011-09-29 17:36:26 +01:00
|
|
|
return 0;
|
2010-03-26 01:57:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SoftProperty::set(const Atlas::Message::Element & val)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2013-01-07 23:03:25 +00:00
|
|
|
SoftProperty * SoftProperty::copy() const
|
|
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2010-03-26 01:57:15 +00:00
|
|
|
ContainsProperty::ContainsProperty(LocatedEntitySet & data) :
|
|
|
|
|
PropertyBase(per_ephem), m_data(data)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2011-09-29 17:36:26 +01:00
|
|
|
int ContainsProperty::get(Atlas::Message::Element & e) const
|
2010-03-26 01:57:15 +00:00
|
|
|
{
|
2011-09-29 17:36:26 +01:00
|
|
|
return 0;
|
2010-03-26 01:57:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ContainsProperty::set(const Atlas::Message::Element & e)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ContainsProperty::add(const std::string & s,
|
|
|
|
|
const Atlas::Objects::Entity::RootEntity & ent) const
|
|
|
|
|
{
|
|
|
|
|
}
|
2013-01-07 23:03:25 +00:00
|
|
|
|
|
|
|
|
ContainsProperty * ContainsProperty::copy() const
|
|
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|