[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 4

odmadd Command

Purpose

Adds objects to created object classes.

Syntax

odmadd InputFile ... ]

Description

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.

Examples

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 General Programming Concepts: Writing and Debugging Programs for another example of an ASCII file that can be input with the odmadd command.

Related Information

Object Data Manager (ODM) Overview for Programmers in AIX General Programming Concepts: Writing and Debugging Programs.

The odm_add_obj subroutine.

List of ODM Commands and Subroutines in AIX General Programming Concepts: Writing and Debugging Programs.

Understanding ODM Object Classes and Objects in AIX General Programming Concepts: Writing and Debugging Programs.

How to Create an Object Class in AIX General Programming Concepts: Writing and Debugging Programs.

How to Add Objects to an Object Class in AIX General Programming Concepts: Writing and Debugging Programs.

How to Store Object Classes and Objects in AIX General Programming Concepts: Writing and Debugging Programs.


[ Previous | Next | Contents | Glossary | Home | Search ]