?? parentstructure.cpp
字號:
//-------------------------------------------------------------------
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Revisions.....:
//===================================================================
#include <stdafx.h> // Precompiled headers.
#include <copyright.h>
#include <kernel/structures/parentstructure.h>
#include <kernel/structures/structures.h>
#include <kernel/structures/batchclassification.h> // Hack.
#include <kernel/utilities/iokit.h>
#include <kernel/utilities/systemkit.h>
#include <kernel/utilities/creator.h>
#include <kernel/basic/message.h>
#include <kernel/system/fstream.h>
#include <common/objectmanager.h>
//-------------------------------------------------------------------
// Methods for class ParentStructure.
//===================================================================
//-------------------------------------------------------------------
// Constructors/destructor.
//===================================================================
//-------------------------------------------------------------------
// Method........: Copy constructor
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......: The children are (presently) not duplicated.
// Revisions.....:
//===================================================================
ParentStructure::ParentStructure(const ParentStructure &in) : AnnotatedStructure(in) {
// Remove any present children.
RemoveAllChildren();
#if 0
int i, no_children = in.GetNoChildren();
// Duplicate the children.
for (i = 0; i < no_children; i++) {
AppendChild(in.GetChild(i)->Duplicate());
}
#endif
}
//-------------------------------------------------------------------
// Method........: Empty constructor
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......:
// Revisions.....:
//===================================================================
ParentStructure::ParentStructure() {
}
//-------------------------------------------------------------------
// Method........: Destructor
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......:
// Revisions.....:
//===================================================================
ParentStructure::~ParentStructure() {
Clear();
}
//-------------------------------------------------------------------
// Methods inherited from Identifier.
//===================================================================
IMPLEMENTIDMETHODS(ParentStructure, PARENTSTRUCTURE, AnnotatedStructure)
//-------------------------------------------------------------------
// Methods inherited from Persistent.
//===================================================================
//-------------------------------------------------------------------
// Method........: Load
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......: Too much code overlap with Creator::Load...
// Unify later.
//
// Revisions.....: A
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -