mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
34 lines
628 B
C++
34 lines
628 B
C++
#include "Parent.h"
|
|
#include "Child.h"
|
|
|
|
#include "gtest/gtest.h"
|
|
|
|
CAF_PDM_SOURCE_INIT( Parent, "Parent" );
|
|
|
|
Parent::Parent()
|
|
{
|
|
CAF_PDM_InitObject( "Parent" );
|
|
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 );
|
|
}
|