2015-07-29 14:19:43 +02:00
|
|
|
#include "Child.h"
|
2014-04-11 11:06:42 +02:00
|
|
|
#include "Parent.h"
|
|
|
|
|
|
2015-11-26 10:06:48 +01:00
|
|
|
#include "gtest/gtest.h"
|
|
|
|
|
|
2014-04-11 11:06:42 +02:00
|
|
|
CAF_PDM_SOURCE_INIT(Parent, "Parent");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parent::Parent()
|
|
|
|
|
{
|
2015-07-29 14:19:43 +02:00
|
|
|
CAF_PDM_InitObject("Parent", "", "", "");
|
2014-04-11 11:06:42 +02:00
|
|
|
CAF_PDM_InitFieldNoDefault(&m_simpleObjectsField, "SimpleObjects", "A child object", "", "", "");
|
|
|
|
|
CAF_PDM_InitFieldNoDefault(&m_simpleObjectF, "SimpleObject", "A child object", "", "", "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Parent::~Parent()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Parent::doSome()
|
|
|
|
|
{
|
|
|
|
|
size_t i = m_simpleObjectsField.size();
|
|
|
|
|
if (i){
|
|
|
|
|
//Child* c = m_simpleObjectsField[0];
|
|
|
|
|
//TestObj* to = c->m_testObj();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TEST(IncludeTest, Basic)
|
|
|
|
|
{
|
|
|
|
|
Parent* p = new Parent;
|
|
|
|
|
delete(p);
|
|
|
|
|
}
|