Adds objects to created object classes.
odmadd [ InputFile ... ]
The odmadd command takes as input one or more InputFile files and adds objects to object classes with data found in the stanza files. Each InputFile file is an ASCII file containing the data that describes the objects to be added to object classes. If no file is specified, input is taken from stdin (standard input).
The classes to be added to are specified in the ASCII input file. The file is in the following general format:
class1name: descriptor1name = descriptor1value descriptor2name = descriptor2value descriptor3name = descriptor3value class2name: descriptor4name = descriptor4value . . .
The input file can contain the \ (backslash), which is handled as it is in C language. String and method values in the input file must be enclosed in " " (double-quotation marks). A descriptor value can span more than one line.
An ASCII input file used by the odmadd command looks like the following:
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"
If the preceding file is named NewObjects, the following command adds the objects to existing object classes:
odmadd NewObjects
See "ODM Example Code and Output" in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs for another example of an ASCII file that can be input with the odmadd command.
Object Data Manager (ODM) Overview for Programmers in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.
The odm_add_obj subroutine.
List of ODM Commands and Subroutines in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.
Understanding ODM Object Classes and Objects in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.
How to Create an Object Class in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.
How to Add Objects to an Object Class in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.
How to Store Object Classes and Objects in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.