默认的选项是在头文件和实体文件中都为内联函数生成代码。
The default option generates code for the inline function in both the header and body files.
我还添加了一个选项,可以打印出绑定的代码生成模型树。
I also added an option to print out the code generation model tree for a binding.
关于与其他选项的兼容性和与GCC 3.0以前的版本生成的二进制代码的调用兼容性,请参考GCC手册获得详细情况。
Refer to the GCC manual for details concerning the compatibility with other options and for call-compatibility with binary code generated by pre-3.0 versions of GCC.
UML到 C++的转换提供了一个以公共元素、被保护元素、私有元素这一顺序生成代码的选项。
The UML To C++ transformation provides an option to generate the code in the order of public elements, followed by protected and private, respectively.
这里指定的选项将影响代码生成。
编译器是高度可调优的,有大量调整生成代码的选项。
The compilers are highly tunable, with a large number of options for tweaking the generated code.
不幸的是,并非所有的软件都可以充分利用这个优点;实际上,默认编译器选项生成的就是32位的代码。
Unfortunately, not all software copes with this elegantly, and in fact, the default compiler options generate 32-bit code.
为了生成运行更加快捷并易于维护的代码,使用散列表存储命令行选项并使用散列验证用户指定的输入,这种方法非常有帮助。
To produce code that runs faster and is easy to maintain, it makes far more sense to use a hash table that stores the command-line options, then USES the hash to validate the user-specified input.
随着工业界不断提供更广泛的生成选项与输入格式,我们将会看到有越来越多的开发者转向代码生成技术。
As the industry moves to offer support for a wider set of functional generation options and input formats, we will see a larger number of developers moving to adopt generative techniques.
列表5.使用DINLINE_HEADER选项为一个内联函数生成代码。
Listing 5. Generated Code for an inline function using the DINLINE_HEADER option.
generate——此选项根据配置文件中指定的TYPE生成代码(部署或消费)。
Generate - This option generates the code (deployment or consumption) and depends on the TYPE supplied in the configuration file.
如果您有大量的类似固有结构,那么您可以仅仅通过更新Ant文件中的一些字段来重复代码生成,从而对每个结构使用相同的选项。
If you have a large number of similar native structures, you can replicate the code generation to use the exact same options for each structure simply by updating a few fields in the Ant file.
其中所具有的选项还使用户可以控制生成的代码文件是否是只读的,以及是否严格验证schema描述。
Options also allow the user to control whether generated code files are read-only, and whether the Schema description is strictly validated.
用Castor根据Schema描述生成代码与用JAXB一样方便,使用的基本选项也一样。
Generating code from a Schema description is as easy with Castor as with JAXB, and USES the same basic options.
列表8.为一个采用DTYPENAME_TEMPLATES选项的模板类所生成的代码。
Listing 8. Generated Code for a template class with DTYPENAME_TEMPLATES option.
采用DVISIBILITY_ORDER选项的代码生成。
采用这一选项生成的代码如列表11中所示。
采用这一选项所生成的代码如列表8中所示。
UML到 C++ 的转换为生成一个内联函数的代码生成提供了两个选项。
The UML to C++ transformation provides two options for generating code for an inline function.
这里,代码生成器的最后一个选项是定义文件本身。
Here the final option to the code generator is the definitions file itself.
采用这一选项生成的代码如列表10中所示。
The code generated with this option looks like that in Listing 10.
这些变化包括:对编译器代码生成进行完全重写,添加用源代码增强代替字节码增强的选项。
These changes include a complete rewrite of the binding compiler code generation, with an added option for using source code enhancement as an alternative to bytecode enhancement.
清单7给出完整的表单源代码,它是用约束生成和消息生成选项生成的。
Listing 7 gives the form's source in its entirety, after it has been generated with both the constraint-generation and message-generation options.
采用这一选项所生成的代码(从上面所提到的uml模型中)如列表13中所示。
The code generated with this option (from the UML model mentioned above) is shown in Listing 13.
g选项提示编译器为源代码生成调试信息。
The -g option prompts the compiler to generate debug information for the source code.
切换至Source选项卡来查看目前为止所生成的代码。
Switch to the Source TAB to see the codes that have been generated so far.
如果希望用户选择指定向导生成的代码的选项,则向导必须有用户界面。
If you want the user to select options specifying what code that your wizard generates, the wizard must have a user interface.
当所生成代码中的代码分析错误和警告出现在窗体和模板中时,此选项不会禁止显示它们。
This option does not suppress code Analysis errors and warnings from generated code when the errors and warnings appear in forms and templates.
s生成同步代码(默认关闭)。优先权高于选项- a。
Generate sync style code only (Default: off). Takes precedence over -a.
s生成同步代码(默认关闭)。优先权高于选项- a。
Generate sync style code only (Default: off). Takes precedence over -a.
应用推荐