⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 utils.xmi

📁 QT4的utils库源码包.解压后运行./configure配置,然后make.使用时在.pro文件中加入两行:LIBS+=-L$$(CPPLIBS)-lutils及INCLUDEPATH+=$$(C
💻 XMI
📖 第 1 页 / 共 5 页
字号:
<?xml version="1.0" encoding="UTF-8"?><XMI xmlns:UML="http://schema.omg.org/spec/UML/1.3" verified="false" timestamp="2006-01-06T03:36:58" xmi.version="1.2" > <XMI.header>  <XMI.documentation>   <XMI.exporter>umbrello uml modeller http://uml.sf.net</XMI.exporter>   <XMI.exporterVersion>1.5</XMI.exporterVersion>   <XMI.exporterEncoding>UnicodeUTF8</XMI.exporterEncoding>  </XMI.documentation>  <XMI.metamodel xmi.name="UML" href="UML.xml" xmi.version="1.3" /> </XMI.header> <XMI.content>  <UML:Model isSpecification="false" isLeaf="false" isRoot="false" xmi.id="m1" isAbstract="false" name="UML Model" >   <UML:Namespace.ownedElement>    <UML:Stereotype isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="9" isRoot="false" isAbstract="false" name="datatype" />    <UML:Stereotype isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="10" isRoot="false" isAbstract="false" name="constructor" />    <UML:Stereotype isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="411" isRoot="false" isAbstract="false" name="enum" />    <UML:DataType stereotype="9" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="8" isRoot="false" isAbstract="false" name="void" />    <UML:DataType stereotype="9" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="15" isRoot="false" isAbstract="false" name="char*" elementReference="14" />    <UML:DataType stereotype="9" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="18" isRoot="false" isAbstract="false" name="const QStringList&amp;" elementReference="3" />    <UML:DataType stereotype="9" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="38" isRoot="false" isAbstract="false" name="QObject*" elementReference="37" />    <UML:DataType stereotype="9" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="63" isRoot="false" isAbstract="false" name="char**" elementReference="14" />    <UML:DataType stereotype="9" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="345" isRoot="false" isAbstract="false" name="const QString&amp;" elementReference="24" />    <UML:DataType stereotype="9" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="350" isRoot="false" isAbstract="false" name="const QIcon&amp;" elementReference="349" />    <UML:DataType stereotype="9" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="356" isRoot="false" isAbstract="false" name="QActionGroup*" elementReference="337" />    <UML:DataType stereotype="9" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="378" isRoot="false" isAbstract="false" name="QMenu*" elementReference="336" />    <UML:DataType stereotype="9" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="386" isRoot="false" isAbstract="false" name="const QKeySequence&amp;" elementReference="385" />    <UML:DataType stereotype="9" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="396" isRoot="false" isAbstract="false" name="const QFont&amp;" elementReference="395" />    <UML:DataType stereotype="9" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="405" isRoot="false" isAbstract="false" name="const QVariant&amp;" elementReference="403" />    <UML:DataType stereotype="9" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="418" isRoot="false" isAbstract="false" name="QWidget*" elementReference="417" />    <UML:DataType stereotype="9" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="423" isRoot="false" isAbstract="false" name="QEvent*" elementReference="422" />    <UML:DataType stereotype="9" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="6922" isRoot="false" isAbstract="false" name="Logger*" elementReference="6916" />    <UML:DataType stereotype="9" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="6926" isRoot="false" isAbstract="false" name="const char*" elementReference="14" />    <UML:DataType stereotype="9" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="6935" isRoot="false" isAbstract="false" name="QMap&lt; QString, Logger * >" elementReference="6934" />    <UML:Class comment="An object which provides a simple interface to the commandline arguments of a program. The methods@ref getSwitch(QString) and @ref getSwitchArg(QString)allow you to process &lt;b>and remove&lt;/b> the switches and switchedarguments in the command line, so that the remainingentries in the stringlist can be processed as auniform list.&lt;br>It also happens to be derived fromQStringList, so you can use any of thosemethods on this object too.&lt;br>This helps you avoid entirely using the C arraysin your application.&lt;br />Usage.:&lt;br />&lt;pre>int main(int argc, char** argv) {ArgumentList args(argc, argv);bool verbose = args.getSwitch(&quot;-v&quot;);// get all other switchesQString outputfile = args.getSwitchArg(&quot;-o&quot;, &quot;default.out&quot;);qout &lt;&lt; args[0];  // prints the name of the executableqout &lt;&lt; args[1]; // prints the first unswitched argumentsomeObject.processEveryFile(args);}&lt;/pre>@author S. Alan Ezust sae@mcs.suffolk.edu" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="2" isRoot="false" isAbstract="false" name="ArgumentList" >     <UML:GeneralizableElement.generalization>      <UML:Generalization xmi.idref="4" />     </UML:GeneralizableElement.generalization>     <UML:Classifier.feature>      <UML:Operation stereotype="10" comment="retrieve argument list from the qApp->argc() and argv() methods.Only works if a @ref QApplication(argc, argv) was already created." isSpecification="false" isLeaf="false" visibility="public" xmi.id="7" isRoot="false" isAbstract="false" isQuery="true" name="ArgumentList" >       <UML:BehavioralFeature.parameter>        <UML:Parameter kind="return" xmi.id="10281" type="8" />       </UML:BehavioralFeature.parameter>      </UML:Operation>      <UML:Operation stereotype="10" isSpecification="false" isLeaf="false" visibility="public" xmi.id="11" isRoot="false" isAbstract="false" isQuery="false" name="ArgumentList" >       <UML:BehavioralFeature.parameter>        <UML:Parameter kind="return" xmi.id="10282" type="8" />        <UML:Parameter isSpecification="false" visibility="private" xmi.id="13" value="" type="12" name="argc" />        <UML:Parameter isSpecification="false" visibility="private" xmi.id="16" value="" type="15" name="argv[]" />       </UML:BehavioralFeature.parameter>      </UML:Operation>      <UML:Operation stereotype="10" isSpecification="false" isLeaf="false" visibility="public" xmi.id="17" isRoot="false" isAbstract="false" isQuery="false" name="ArgumentList" >       <UML:BehavioralFeature.parameter>        <UML:Parameter kind="return" xmi.id="10283" type="8" />        <UML:Parameter isSpecification="false" visibility="private" xmi.id="19" value="" type="18" name="argumentList" />       </UML:BehavioralFeature.parameter>      </UML:Operation>      <UML:Operation comment="(Re)loads argument lists into this object." isSpecification="false" isLeaf="false" visibility="public" xmi.id="20" isRoot="false" isAbstract="false" isQuery="false" name="argsToStringlist" >       <UML:BehavioralFeature.parameter>        <UML:Parameter kind="return" xmi.id="10284" type="8" />        <UML:Parameter isSpecification="false" visibility="private" xmi.id="21" value="" type="12" name="argc" />        <UML:Parameter isSpecification="false" visibility="private" xmi.id="22" value="" type="15" name="argv[]" />       </UML:BehavioralFeature.parameter>      </UML:Operation>      <UML:Operation comment="finds &lt;b>and removes&lt;/b> a switch from the string list, if it exists.@param option the switch to search for@return true if the switch was found" isSpecification="false" isLeaf="false" visibility="public" xmi.id="23" isRoot="false" isAbstract="false" isQuery="false" name="getSwitch" >       <UML:BehavioralFeature.parameter>        <UML:Parameter kind="return" xmi.id="10285" type="26" />        <UML:Parameter isSpecification="false" visibility="private" xmi.id="25" value="" type="24" name="option" />       </UML:BehavioralFeature.parameter>      </UML:Operation>      <UML:Operation comment="finds/removes a switch &lt;b>and its accompanying argument&lt;/b>from the string list, if the switch is found. Does nothing if theswitch is not found.@param option the switch to search for@param defaultReturnValue the return value if option is not found in the stringlist@return the argument following option, or defaultValue if the optionis not found." isSpecification="false" isLeaf="false" visibility="public" xmi.id="27" isRoot="false" isAbstract="false" isQuery="false" name="getSwitchArg" >       <UML:BehavioralFeature.parameter>        <UML:Parameter kind="return" xmi.id="10286" type="24" />        <UML:Parameter isSpecification="false" visibility="private" xmi.id="28" value="" type="24" name="option" />        <UML:Parameter isSpecification="false" visibility="private" xmi.id="29" value="" type="24" name="defaultReturnValue" />       </UML:BehavioralFeature.parameter>      </UML:Operation>     </UML:Classifier.feature>    </UML:Class>    <UML:Class isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="3" isRoot="false" isAbstract="false" name="QStringList" />    <UML:Class isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="12" isRoot="false" isAbstract="false" name="int" />    <UML:Class isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="14" isRoot="false" isAbstract="false" name="char" />    <UML:Class isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="24" isRoot="false" isAbstract="false" name="QString" />    <UML:Class isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="26" isRoot="false" isAbstract="false" name="bool" />    <UML:Class comment="An operation, a chunk of work, a group of executablestatements.@short Base class for the command pattern." isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="30" isRoot="false" isAbstract="false" name="Unit" >     <UML:GeneralizableElement.generalization>      <UML:Generalization xmi.idref="32" />     </UML:GeneralizableElement.generalization>     <UML:Classifier.feature>      <UML:Operation stereotype="10" isSpecification="false" isLeaf="false" visibility="public" xmi.id="35" isRoot="false" isAbstract="false" isQuery="true" name="Unit" >       <UML:BehavioralFeature.parameter>        <UML:Parameter kind="return" xmi.id="10287" type="8" />        <UML:Parameter isSpecification="false" visibility="private" xmi.id="36" value="" type="24" name="name" />        <UML:Parameter isSpecification="false" visibility="private" xmi.id="39" value="" type="38" name="parent" />       </UML:BehavioralFeature.parameter>      </UML:Operation>      <UML:Operation comment="Execute the unitThis particular version just calls @ref runChildren().Can be overridden.@see runChildren()" isSpecification="false" isLeaf="false" visibility="public" xmi.id="40" isRoot="false" isAbstract="false" isQuery="true" name="execute" >       <UML:BehavioralFeature.parameter>        <UML:Parameter kind="return" xmi.id="10288" type="8" />       </UML:BehavioralFeature.parameter>      </UML:Operation>      <UML:Operation isSpecification="false" isLeaf="false" visibility="public" xmi.id="41" isRoot="false" isAbstract="false" isQuery="false" name="message" >       <UML:BehavioralFeature.parameter>        <UML:Parameter kind="return" xmi.id="10289" type="24" />       </UML:BehavioralFeature.parameter>      </UML:Operation>      <UML:Operation comment="Calls @ref execute() on each Unit-derivedobject that is a child of this." isSpecification="false" isLeaf="false" visibility="protected" xmi.id="42" isRoot="false" isAbstract="false" isQuery="false" name="runChildren" >       <UML:BehavioralFeature.parameter>        <UML:Parameter kind="return" xmi.id="10290" type="8" />       </UML:BehavioralFeature.parameter>      </UML:Operation>      <UML:Operation isSpecification="false" isLeaf="false" visibility="protected" xmi.id="43" isRoot="false" isAbstract="false" isQuery="false" name="_trigger" >       <UML:BehavioralFeature.parameter>        <UML:Parameter kind="return" xmi.id="10291" type="8" />        <UML:Parameter isSpecification="false" visibility="private" xmi.id="44" value="" type="26" name="" />       </UML:BehavioralFeature.parameter>      </UML:Operation>     </UML:Classifier.feature>    </UML:Class>    <UML:Class isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="31" isRoot="false" isAbstract="false" name="QAction" >     <UML:GeneralizableElement.generalization>      <UML:Generalization xmi.idref="339" />     </UML:GeneralizableElement.generalization>     <UML:Classifier.feature>      <UML:Operation stereotype="10" isSpecification="false" isLeaf="false" visibility="public" xmi.id="342" isRoot="false" isAbstract="false" isQuery="true" name="QAction" >

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -