networkcontrolfactory.cpp

来自「大家用过UML的流程图设计器吧」· C++ 代码 · 共 29 行

CPP
29
字号
#include "stdafx.h"
#include "NetworkControlFactory.h"
#include "NetworkSymbol.h"

CDiagramEntity* CNetworkControlFactory::CreateFromString( const CString& str )
/* ============================================================
	Function :		CNetworkControlFactory::CreateFromString
	Description :	The function returns an object from the 
					parameter str.
					
	Return :		CDiagramEntity*		-	The new object, or 
											NULL is str is not a 
											valid representation.
	Parameters :	const CString& str	-	The string to create 
											a new object from
					
	Usage :			Call this static function while reading 
					string representations of objects from a 
					text file. Note that the caller is 
					responsible for the allocated memory.

   ============================================================*/
{
	CDiagramEntity* obj;

	obj = CNetworkSymbol::CreateFromString( str );

	return obj;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?