Microsoft's two very practical C ++ classes (Timer and ParseCommandline)

zhaozj2021-02-16  109

When you finish your files today, you find a small program and its source code you have downloaded from Microsoft, called MSXSL (download here). This gadget is useful, but more useful should be its source code. I saw it, the most useful thing is three classes, one is Timer, one is ParseCommandline and its school msxmlcommandline.

The Timer class provides a high-precision timer.

ParseCommandline and its assignment MSXmlCommandline implement the command line resolution. With reference to these two classes, we can easily resolve the command line of your own programs, and it is very standard. It supports ([-Switch] | [option] | [""]) * format command line while supporting the Unix style with the DOS style command line.

Let's take a look at MSXSL.EXE command line parameter descriptions know:

Microsoft (R) XSLT Processor Version 4.0

USAGE: MSXSL SOURCE STYLESHEET [OPTIONS] [param = value ...] [xmlns: prefix = URI ...]

Options: -? Show this message -o filename Write output to named file -m startMode Start the transform in this mode -xw Strip non-significant whitespace from source and stylesheet -xe Do not resolve external definitions during parse phase -v Validate documents during parse phase -t Show load and transformation timings -pi Get stylesheet URL from xml-stylesheet PI in source document -u version Use a specific version of MSXML: '2.6', '3.0', '4.0' - Dash used as source argument loads Xml from stdin - Dash Used as stylesheet argument loading xsl from stdin

I want to have such a complicated command, everyone is enough! :) Powerful, but the code is not complicated

转载请注明原文地址:https://www.9cbs.com/read-14264.html

New Post(0)