Itasca C++ Interface
Toggle main menu visibility
Loading...
Searching...
No Matches
iextension.h
Go to the documentation of this file.
1
#pragma once
5
6
namespace
itasca
{
7
class
Archive2;
8
class
IThing
;
9
}
10
11
namespace
itascaxd
{
12
using namespace
itasca;
13
22
class
IExtension
{
23
public
:
25
virtual
void
hostDestroyNotice
()=0;
27
virtual
void
save
(Archive2 &a)
const
=0;
28
virtual
bool
restore(Archive2 &a,uint64 label)=0;
29
virtual
void
remap(Archive2 &a)=0;
31
virtual
string
getName
()
const
=0;
33
virtual
IExtension
*
clone
()
const
=0;
34
};
35
}
// namespace itascaxd
36
// EOF
itasca::IThing
Base class for items that will be stored in containers.
Definition
ithing.h:31
itascaxd::IExtension
Interface class for acessing extension stored in the base class of other things.
Definition
iextension.h:22
itascaxd::IExtension::save
virtual void save(Archive2 &a) const =0
Save/restore data.
itascaxd::IExtension::hostDestroyNotice
virtual void hostDestroyNotice()=0
Notice emitted to inform that host was destroyed.
itascaxd::IExtension::clone
virtual IExtension * clone() const =0
Allocates memory and returns a poniter to an object that inherits from IExtension.
itascaxd::IExtension::getName
virtual string getName() const =0
Returns the extension name. Needs to be the same as the registered name, or typeid(T)....
itasca
namespace Itasca
Definition
basememory.cpp:14
itascaxd
Itasca Library standard namespace, specific to 2D or 3D.
Definition
icontactmodule.h:6
common
module
interface
iextension.h
Generated by
1.18.0