AIX命令参考大全,卷 4,n - r - odmadd 命令

[ 页的底部 | 上一页 | 下一页 | 目录 | 索引 | 法律条款 ]

AIX命令参考大全,卷 4,n - r

odmadd 命令

用途

添加对象到创建的对象类。

语法

odmaddInputFile ... ]

描述

odmadd 命令以一个或多个InputFile 文件为输入,并且添加对象到带有节文件数据的对象类中。每个 InputFile 文件是 ASCII 文件,包含有描述要添加到对象类中的对象的数据。如果没有指定文件,从标准输入中获取输入。

要添加的类在 ASCII 输入文件中指定。文件的常规格式如下:

class1name:
        descriptor1name = descriptor1value
        descriptor2name = descriptor2value
        descriptor3name = descriptor3value
  
class2name:
        descriptor4name = descriptor4value
.
.
.
   

输入文件能够包含 \ (反斜杠),它的处理和在 C 语言中一样。输入文件中字符串和方法的值必须用 " " (双引号)括起来。 描述符值能够跨越多行。

示例

ASCII 输入文件由 odmadd 命令使用,如下所示:

Fictional_Characters:
Story_Star       = "Cinderella"
Birthday         = "Once upon a time"
Age              = 19
Friends_of       = Cinderella
Enemies_of       = "Cinderella"
  
Friend_Table:
Friend_of        = "Cinderella"
Friend           = "Fairy godmother"
   
Friend_Table:
Friend_of        = "Cinderella"
Friend           = "Mice"
   
Enemy_Table:
Enemy_of         = "Cinderella"
Enemy            = "Wicked sisters"
   
Enemy_Table:
Enemy_of         = "Cinderella"
Enemy            = "Mean stepmother"

如果上述文件命名为 NewObjects,下列命令添加对象到现有的对象类中:

odmadd NewObjects

请参阅“ODM Example Code and Output”AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs 对于以 odmadd 命令为输入的 ASCII 文件的另一个示例。

相关信息

Object Data Manager (ODM) Overview for ProgrammersAIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs

odm_add_obj 子例程。

List of ODM Commands and SubroutinesAIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs

Understanding ODM Object Classes and ObjectsAIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs

How to Create an Object ClassAIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs

How to Add Objects to an Object ClassAIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs

How to Store Object Classes and ObjectsAIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs

[ 页的顶部 | 上一页 | 下一页 | 目录 | 索引 | 法律条款 ]