本文整理汇总了C++中NassiBrick::Deserialize方法的典型用法代码示例。如果您正苦于以下问题:C++ NassiBrick::Deserialize方法的具体用法?C++ NassiBrick::Deserialize怎么用?C++ NassiBrick::Deserialize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NassiBrick
的用法示例。
在下文中一共展示了NassiBrick::Deserialize方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: inp
//static
NassiBrick *NassiBrick::SetData(wxInputStream &stream)
{
wxUint32 n;
NassiBrick *brick;
wxTextInputStream inp(stream);
inp >> n;
switch ( n )
{
case NASSI_BRICK_INSTRUCTION:
brick = new NassiInstructionBrick();
break;
case NASSI_BRICK_CONTINUE:
brick = new NassiContinueBrick();
break;
case NASSI_BRICK_BREAK:
brick = new NassiBreakBrick();
break;
case NASSI_BRICK_RETURN:
brick = new NassiReturnBrick();
break;
case NASSI_BRICK_WHILE:
brick = new NassiWhileBrick();
break;
case NASSI_BRICK_DOWHILE:
brick = new NassiDoWhileBrick();
break;
case NASSI_BRICK_FOR:
brick = new NassiForBrick();
break;
case NASSI_BRICK_BLOCK:
brick = new NassiBlockBrick();
break;
case NASSI_BRICK_IF:
brick = new NassiIfBrick();
break;
case NASSI_BRICK_SWITCH:
brick = new NassiSwitchBrick();
break;
case NASSI_BRICK_ESC:
default:
brick = nullptr;
}
if ( brick )
brick->Deserialize(stream);
return ( brick );
}