当前位置: 首页>>代码示例>>C++>>正文


C++ TextFile::WriteLine方法代码示例

本文整理汇总了C++中TextFile::WriteLine方法的典型用法代码示例。如果您正苦于以下问题:C++ TextFile::WriteLine方法的具体用法?C++ TextFile::WriteLine怎么用?C++ TextFile::WriteLine使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TextFile的用法示例。


在下文中一共展示了TextFile::WriteLine方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: OnClose

void ToolBox::OnClose(wxCloseEvent& event)
{
	TextFile ofp;
	wxString text;
	ofp.Open("boxdiag.txt");

	if(servant || child) {
		Show(false);
		ofp.WriteLine(text.Format("hide box %d, child %d", boxindex, child));
	}
	else if(canclose) {
		ofp.WriteLine(text.Format("close box %d, mod boxes %d", boxindex, toolset->numtools));
		//if(mod != NULL) mod->modtools.RemoveBox(boxindex);
		//mainwin->toolset.RemoveBox(boxindex);
		toolset->RemoveBox(boxindex);
		Destroy();
	}

	ofp.Close();
}
开发者ID:HypoModel,项目名称:HypoModBase,代码行数:20,代码来源:hypocontrols.cpp

示例2: BaseStore

void GraphBase::BaseStore(wxString path, wxString tag)
{
	int i;
	TextFile outfile;
	wxString text, filename, filetag;

	filename = "gbase-" + tag + ".dat";

	//outfile.New(initpath + "/Graphs/" + filename);
	outfile.New(path + "/" + filename);
	for(i=0; i<numgraphs; i++) {
		outfile.WriteLine(graphstore[i].StoreDat(GetTag(i)));
		//outfile.WriteLine(text.Format
	}
	outfile.Close();
}
开发者ID:hypomod,项目名称:HypoModelBase,代码行数:16,代码来源:hypodat.cpp

示例3: GHistStore

void Model::GHistStore()
{
	wxString filename, filepath;
	wxString text;
	TextFile outfile;
	int i;

	//if(path == "") filepath = "Init";
	//else filepath = path;
	filepath = GetPath();

	wxComboBox *gstag = mainwin->scalebox->gstag;
	
	filename = modname + "gshist.ini";
	outfile.New(filepath + "/" + filename);
	for(i=gstag->GetCount()-1; i>=0; i--) 
		outfile.WriteLine(text.Format("graph %s", gstag->GetString(i)));
	outfile.Close();
}
开发者ID:iampunkrock,项目名称:HypoModelBase,代码行数:19,代码来源:hypomods.cpp

示例4: GetString

TagBox::~TagBox()
{
	int i;
	wxString filename, filepath, outline, text;
	TextFile opfile;

	//if(diagbox) diagbox->Write(text.Format("closing tag box %s\n", name)); 

	// Tag history
	if(name == "") return;
	filename = name + "tags.ini";
	filepath = path + "/Tags/";
	if(!wxDirExists(filepath)) wxMkdir(filepath);
	opfile.New(filepath + filename);

	for(i=GetCount()-1; i>=0; i--) {
		outline.Printf("tag %s", GetString(i));
		opfile.WriteLine(outline);
	}
	opfile.Close();
}
开发者ID:HypoModel,项目名称:HypoModBase,代码行数:21,代码来源:hypocontrols.cpp

示例5: OptionStore

void HypoMain::OptionStore()
{
    wxString filename;
    wxString outline;
    
    filename = "Init/hypoprefs.ini";
    
    TextFile opfile;
    opfile.New(filename);
    
    opfile.WriteLine(outline.Format("startmod %d", startmod));
    
    opfile.WriteLine(outline.Format("numdraw %d", numdraw));
    
    opfile.WriteLine(outline.Format("viewheight %d", viewheight));
    
    opfile.WriteLine(outline.Format("viewwidth %d", viewwidth));
    
    opfile.WriteLine(outline.Format("ylabels %d", ylabels));
    
    opfile.WriteLine(outline.Format("datsample %d", datsample));
    
    opfile.WriteLine(outline.Format("basic %d", basic));
    
    opfile.WriteLine(outline.Format("diagnostic %d", diagnostic));
    
    opfile.Close();
    
    filename = "Init/hypopaths.ini";
    opfile.New(filename);
    opfile.WriteLine(datapath);
    opfile.WriteLine(parampath);
    opfile.WriteLine(outpath);
    opfile.WriteLine(modpath);
    opfile.Close();
}
开发者ID:hypomod,项目名称:HypoModelBase,代码行数:36,代码来源:hypomodel.cpp


注:本文中的TextFile::WriteLine方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。