⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 parentstructure.cpp

📁 粗糙集应用软件
💻 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 + -