ResInsight/Fwk/AppFwk/cafProjectDataModel/cafPdmObjectGroup.cpp
2015-08-13 13:06:57 +02:00

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