本文整理汇总了C++中UmlPackage::text_path方法的典型用法代码示例。如果您正苦于以下问题:C++ UmlPackage::text_path方法的具体用法?C++ UmlPackage::text_path怎么用?C++ UmlPackage::text_path使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UmlPackage
的用法示例。
在下文中一共展示了UmlPackage::text_path方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: generate_text
void UmlArtifact::generate_text()
{
const WrapperStr srcdef = javaSource();
if (srcdef.isEmpty()) {
if (verbose())
UmlCom::trace(WrapperStr("<hr><font face=helvetica>artifact <i>")
+ name() + "</i> has an empty Java definition</font><br>");
return;
}
UmlPackage * pack = package();
const WrapperStr & name = UmlArtifact::name();
WrapperStr src_path = pack->text_path(name);
WrapperStr s = " in <i> " + src_path + "</i>";
UmlCom::message(name);
if (verbose())
UmlCom::trace(WrapperStr("<hr><font face=helvetica>Generate code for <i> ")
+ name + "</i>" + s + "</font><br>");
else
set_trace_header(WrapperStr("<font face=helvetica>Generate code for <i> ")
+ name + "</i>" + s + "</font><br>");
if (must_be_saved(src_path, (const char *) srcdef)) {
write_trace_header();
FILE * fp_src;
if ((fp_src = fopen((const char *) src_path, "wb")) == 0) {
write_trace_header();
UmlCom::trace(WrapperStr("<font color=\"red\"><b><i> ")
+ name + " : </i> cannot open <i> "
+ src_path + "</i>, edit the <i> generation settings</i> (tab directory) or the <i>"
+ pack->name() + "</i> Java directory specification</b></font><br>");
incr_error();
}
else {
fputs((const char *) srcdef, fp_src);
fclose(fp_src);
}
}
else if (get_trace_header().isEmpty())
UmlCom::trace(WrapperStr("<font face=helvetica><i> ")
+ src_path + "</i> not modified</font><br>");
}