//********************************************************************** //********************************************************************** //********************************************************************** public void writeFileBegin() { mInputData.mFileHeaderData.mUsingList.ForEach(delegate(String name) { mWCS.WriteLine(0, "using {0};", name); }); mWCS.WriteSkip(); mWCS.WriteBar(0, 3); mWCS.WritePreCommentList(0, mInputData.mFileHeaderData.mPreCommentList); mWCS.WriteSkip(); mWCS.WriteLine(0, "namespace {0}", mInputData.mFileHeaderData.mNameSpace); mWCS.WriteLine(0, "{"); mWCS.WriteSkip(); }
//********************************************************************** //********************************************************************** //********************************************************************** public void writeFileBegin() { mInputData.mFileHeaderData.mIncludeCPList.ForEach(delegate(String tString) { if (tString.StartsWith("<")) { mWCP.WriteLine(0, "#include {0}", tString); } else { mWCP.WriteLine(0, "#include \"{0}\"", tString); } }); mWCP.WriteSkip(); mWCP.WriteLine(0, "namespace {0}", mInputData.mFileHeaderData.mNameSpace); mWCP.WriteLine(0, "{"); mWCP.WriteSkip(); }
//********************************************************************** //********************************************************************** //********************************************************************** public void writeFileBegin() { mWCH.WriteLine(0, "#ifndef {0}", mInputData.mFileHeaderData.mDefineCH); mWCH.WriteLine(0, "#define {0}", mInputData.mFileHeaderData.mDefineCH); mWCH.WriteSkip(); mInputData.mFileHeaderData.mIncludeCHList.ForEach(delegate(String tString) { if (tString.StartsWith("<")) { mWCH.WriteLine(0, "#include {0}", tString); } else { mWCH.WriteLine(0, "#include \"{0}\"", tString); } }); mWCH.WriteSkip(); mWCH.WriteBar(0, 3); mWCH.WritePreCommentList(0, mInputData.mFileHeaderData.mPreCommentList); mWCH.WriteSkip(); mWCH.WriteLine(0, "namespace {0}", mInputData.mFileHeaderData.mNameSpace); mWCH.WriteLine(0, "{"); mWCH.WriteSkip(); }