Linux compile fix.

Needed to move the implementation of copyByType() out of the class definition.
This commit is contained in:
Jacob Storen 2015-06-29 03:37:02 -07:00
parent 00f8743cef
commit 3bd9360911

View File

@ -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);
};