persistentassembly.cpp
来自「著名的uncle Bob的Agile software development的」· C++ 代码 · 共 28 行
CPP
28 行
#include "persistentAssembly.h"PersistentAssembly::PersistentAssembly(const string& name, const string& assyCode) :Assembly(name, assyCode), PersistentProduct(name), Product(name){}PersistentAssembly::~PersistentAssembly(){}void PersistentAssembly::writeHeader(ostream& s) const{ s << "<ASSEMBLY>";}void PersistentAssembly::writeFooter(ostream& s) const{ s << "</ASSEMBLY>";}void PersistentAssembly::writeFields(ostream& s) const{ PersistentProduct::writeFields(s); s << "<ASSYCODE>" << getAssyCode() << "</ASSYCODE>";}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?