Move explicit instansiations to separate file

This commit is contained in:
Magne Sjaastad 2024-04-01 18:41:38 +02:00
parent a522a496f8
commit 84006bc02a
7 changed files with 54 additions and 11 deletions

View File

@ -50,6 +50,7 @@
#include "RicWellLogTools.h"
#include "cafPdmObjectGroup.h"
#include "cafPdmUiItem.h"
#include "cafPdmUiTreeView.h"
#include "cafSelectionManager.h"

View File

@ -18,7 +18,6 @@
#pragma once
#include "cafPdmObjectGroup.h"
#include "cafPdmPointer.h"
#include "cafPdmUiDragDropInterface.h"
@ -28,6 +27,7 @@ namespace caf
{
class PdmObjectHandle;
class PdmUiTreeView;
class PdmObjectGroup;
} // namespace caf
class RimMultiPlot;

View File

@ -69,6 +69,8 @@ set(PROJECT_FILES
cafAsyncObjectDeleter.inl
cafAsyncWorkerManager.h
cafAsyncWorkerManager.cpp
cafPdmFieldInstanciations.h
cafPdmFieldInstanciations.cpp
)
add_library(${PROJECT_NAME} ${PROJECT_FILES})

View File

@ -0,0 +1,24 @@
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2014 Ceetron Solutions AS
//
// <APPLICATION_NAME> is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// <APPLICATION_NAME> is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.
//
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
#include "cafPdmFieldInstanciations.h"
template class caf::PdmDataValueField<int>;
template class caf::PdmDataValueField<bool>;
template class caf::PdmDataValueField<QString>;
template class caf::PdmDataValueField<double>;

View File

@ -0,0 +1,26 @@
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2014 Ceetron Solutions AS
//
// <APPLICATION_NAME> is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// <APPLICATION_NAME> is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.
//
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
#pragma once
#include "cafPdmDataValueField.h"
extern template class caf::PdmDataValueField<int>;
extern template class caf::PdmDataValueField<bool>;
extern template class caf::PdmDataValueField<QString>;
extern template class caf::PdmDataValueField<double>;

View File

@ -64,8 +64,3 @@ PdmObjectCollection::~PdmObjectCollection()
}
} // End of namespace caf
template class caf::PdmDataValueField<int>;
template class caf::PdmDataValueField<bool>;
template class caf::PdmDataValueField<QString>;
template class caf::PdmDataValueField<double>;

View File

@ -80,8 +80,3 @@ public:
};
} // End of namespace caf
extern template class caf::PdmDataValueField<int>;
extern template class caf::PdmDataValueField<bool>;
extern template class caf::PdmDataValueField<QString>;
extern template class caf::PdmDataValueField<double>;