本文整理汇总了C++中UmlClass::importClasses方法的典型用法代码示例。如果您正苦于以下问题:C++ UmlClass::importClasses方法的具体用法?C++ UmlClass::importClasses怎么用?C++ UmlClass::importClasses使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UmlClass
的用法示例。
在下文中一共展示了UmlClass::importClasses方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: if
//.........这里部分代码省略.........
((cl = UmlBaseClass::create(parent, legalName(s))) == 0)) {
UmlCom::trace("<br>cannot create class '" + s + "' in " +
parent->fullName());
throw 0;
}
newItem(cl, id);
if (!ste.isEmpty()) {
if (ste.left(5) == "CORBA") {
if (ste != "CORBAValue")
cl->set_Stereotype(ste.mid(5).lower());
}
else
cl->set_Stereotype(((ste == "Actor") || (ste == "Interface"))
? ste.lower() : ste);
}
if (!doc.isEmpty())
cl->set_Description(doc);
cl->lang = None;
}
else if ((cl = (UmlClass *) findItem(id, aClass)) == 0) {
UmlCom::trace("<br>unknown class '" + s + "' in " +
parent->fullName());
throw 0;
}
Q3CString art_path;
for (;;) {
switch (k) {
case ')':
switch (cl->lang) {
case Cplusplus:
case AnsiCplusplus:
case VCplusplus:
cl->cplusplus(prop);
break;
case Oracle8:
cl->oracle8(prop);
break;
case Corba:
cl->corba(prop);
break;
case Java:
cl->java(prop);
break;
default:
break;
}
if (!scanning) {
cl->setProperties(prop);
cl->unload(TRUE);
}
return cl;
case ATOM:
if (s2 == "operations")
cl->importOperations(f);
else if (s2 == "class_attributes")
cl->importAttributes(f);
else if (!scanning &&
((s2 == "superclasses") ||
(s2 == "used_nodes") ||
(s2 == "realized_interfaces")))
cl->importRelations(f);
else if (s2 == "nestedClasses")
cl->importClasses(f);
else if (s2 == "abstract") {
if (f.readBool())
cl->set_isAbstract(TRUE);
}
else if (s2 == "language")
cl->lang = f.readLanguage();
else if (s2 == "instantiation_relationship")
cl->importInstantiate(f);
else if (s2 == "parameters") {
if (knd == "Parameterized_Class")
cl->importFormals(f);
else
cl->importActuals(f);
}
else if (s2 == "module") {
if (f.read(art_path) != STRING)
f.syntaxError(art_path, "module's name");
}
else if (!scanning && (s2 == "quidu")) {
f.read(s2);
cl->assocArtifact(Artifact::find(s2), art_path);
}
else
f.skipNextForm();
k = f.read(s2);
break;
default:
f.syntaxError(s);
}
}
}