mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Linux compile fix.
Needed to move the implementation of copyByType() out of the class definition.
This commit is contained in:
parent
00f8743cef
commit
3bd9360911
@ -75,7 +75,40 @@ public:
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
void createCopyByType(std::vector<PdmPointer<T> >* copyOfTypedObjects) const
|
||||
void createCopyByType(std::vector<PdmPointer<T> >* copyOfTypedObjects) const;
|
||||
};
|
||||
|
||||
//==================================================================================================
|
||||
/// The PdmDocument class is the main class to do file based IO,
|
||||
/// and is also supposed to act as the overall container of the objects read.
|
||||
//==================================================================================================
|
||||
class PdmDocument: public PdmObjectGroup
|
||||
{
|
||||
CAF_PDM_HEADER_INIT;
|
||||
public:
|
||||
PdmDocument();
|
||||
|
||||
PdmField<QString> fileName;
|
||||
|
||||
void readFile();
|
||||
void writeFile();
|
||||
|
||||
void readFile(QIODevice* device);
|
||||
void writeFile(QIODevice* device);
|
||||
|
||||
static void updateUiIconStateRecursively(PdmObject * root);
|
||||
static void initAfterReadTraversal(PdmObject * root);
|
||||
|
||||
static void setupBeforeSaveTraversal(PdmObject * root);
|
||||
|
||||
};
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
template <typename T>
|
||||
void PdmObjectGroup::createCopyByType(std::vector<PdmPointer<T> >* copyOfTypedObjects) const
|
||||
{
|
||||
std::vector<PdmPointer<T> > sourceTypedObjects;
|
||||
objectsByType(&sourceTypedObjects);
|
||||
@ -107,32 +140,6 @@ public:
|
||||
if (obj) copyOfTypedObjects->push_back(obj);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
//==================================================================================================
|
||||
/// The PdmDocument class is the main class to do file based IO,
|
||||
/// and is also supposed to act as the overall container of the objects read.
|
||||
//==================================================================================================
|
||||
class PdmDocument: public PdmObjectGroup
|
||||
{
|
||||
CAF_PDM_HEADER_INIT;
|
||||
public:
|
||||
PdmDocument();
|
||||
|
||||
PdmField<QString> fileName;
|
||||
|
||||
void readFile();
|
||||
void writeFile();
|
||||
|
||||
void readFile(QIODevice* device);
|
||||
void writeFile(QIODevice* device);
|
||||
|
||||
static void updateUiIconStateRecursively(PdmObject * root);
|
||||
static void initAfterReadTraversal(PdmObject * root);
|
||||
|
||||
static void setupBeforeSaveTraversal(PdmObject * root);
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user