mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 15:26:48 -06:00
71 lines
2.0 KiB
C++
71 lines
2.0 KiB
C++
|
|
|
|
#include "cafPdmObjectGroup.h"
|
|
#include "cafInternalPdmXmlFieldCapability.h"
|
|
|
|
#include <QFile>
|
|
|
|
namespace caf
|
|
{
|
|
|
|
CAF_PDM_SOURCE_INIT(PdmObjectGroup, "PdmObjectGroup");
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
///
|
|
//--------------------------------------------------------------------------------------------------
|
|
PdmObjectGroup::PdmObjectGroup()
|
|
{
|
|
CAF_PDM_InitObject("Object Group", "", "", "");
|
|
}
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
///
|
|
//--------------------------------------------------------------------------------------------------
|
|
PdmObjectGroup::~PdmObjectGroup()
|
|
{
|
|
}
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
///
|
|
//--------------------------------------------------------------------------------------------------
|
|
void PdmObjectGroup::deleteObjects()
|
|
{
|
|
size_t it;
|
|
for (it = 0; it != objects.size(); ++it)
|
|
{
|
|
delete objects[it];
|
|
}
|
|
}
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
///
|
|
//--------------------------------------------------------------------------------------------------
|
|
void PdmObjectGroup::addObject(PdmObjectHandle * obj)
|
|
{
|
|
objects.push_back(obj);
|
|
}
|
|
|
|
|
|
|
|
CAF_PDM_SOURCE_INIT(PdmObjectCollection, "PdmObjectCollection");
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
///
|
|
//--------------------------------------------------------------------------------------------------
|
|
PdmObjectCollection::PdmObjectCollection()
|
|
{
|
|
CAF_PDM_InitObject("PdmObjectCollection", "", "", "");
|
|
CAF_PDM_InitFieldNoDefault(&objects, "PdmObjects", "", "", "", "")
|
|
}
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
///
|
|
//--------------------------------------------------------------------------------------------------
|
|
PdmObjectCollection::~PdmObjectCollection()
|
|
{
|
|
|
|
}
|
|
|
|
} //End of namespace caf
|
|
|