Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cbhey.cc File Reference


Detailed Description

Main file for a command line utility used to communicate with active CPU broker objects.

Definition in file cbhey.cc.

Include dependency graph for cbhey.cc:

Include dependency graph

Go to the source code of this file.

Classes

struct  scan_payload

Defines

#define private   public
#define __XSTRING(x)   __STRING(x)
 Convert a macro argument to a string.

Enumerations

enum  { CDB_DEBUG, CDB_LIST }
enum  { CDF_DEBUG = (1L << CDB_DEBUG), CDF_LIST = (1L << CDB_LIST) }
 Flags for the cbhey_data.cd_Flags field. More...

Functions

void cbhUsage (const char *prog_name)
 Print the usage statement to standard error.
int cbhProcessOptions (int &argc_inout, char **&argv_inout)
 Process the command line options.
void interpret_ior (IorHandler *ioh, char *thisIor, struct IOR_Manager *thisIorInfo)
 Interpret an IOR.
const char * type_from_ior (const char *ior)
 Extract the object type from an IOR.
int scan_file (const char *path, struct scan_payload *sp)
 Hook used to scan a file found in a directory tree.
int scan_path (const char *path, struct scan_payload *sp)
 Scan a path, determine its type, and pass to the appropriate function (scan_directory/scan_file).
int scan_directory (const char *path, struct scan_payload *sp)
 Scan a directory and pass its contents to the scan_path.
int scan_path_list (char *path_list, struct scan_payload *sp)
 Scan through a colon separate list of paths.
int scan_cbhey_paths (struct scan_payload *sp)
 Scan the directory paths specific to cbhey.
int main (int argc, char *argv[])

Variables

struct {
   unsigned long   cd_Flags
   const char *   cd_InterfaceType
cbhey_data
 Global data for the tool.


Define Documentation

#define __XSTRING  )     __STRING(x)
 

Convert a macro argument to a string.

Parameters:
x The macro to expand to a string.

Definition at line 52 of file cbhey.cc.


Enumeration Type Documentation

anonymous enum
 

Flags for the cbhey_data.cd_Flags field.

CDF_LIST - Just list the supported interface/implementation types.

Definition at line 65 of file cbhey.cc.


Function Documentation

int cbhProcessOptions int &  argc_inout,
char **&  argv_inout
[static]
 

Process the command line options.

Parameters:
argc_inout Reference to main's argc variable. On return, the variable will contain the number of arguments remaining after option processing.
argv_inout Reference to main's argv variable. On return, the variable will contain the remaining argument values.
Returns:
True if the options were processed correctly, false otherwise.

Definition at line 121 of file cbhey.cc.

References cbhey_data.

void cbhUsage const char *  prog_name  )  [static]
 

Print the usage statement to standard error.

Parameters:
prog_name The program name.

Definition at line 86 of file cbhey.cc.

References require.

void interpret_ior IorHandler *  ioh,
char *  thisIor,
struct IOR_Manager *  thisIorInfo
[static]
 

Interpret an IOR.

Parameters:
ioh The object where the interpretation should be stored.
thisIor The IOR to interpret.
thisIorInfo ...

Definition at line 173 of file cbhey.cc.

Referenced by type_from_ior().

int scan_cbhey_paths struct scan_payload *  sp  )  [static]
 

Scan the directory paths specific to cbhey.

Parameters:
sp The payload to pass to the directory scanner.
Returns:
Zero on success, otherwise an errno value.

Definition at line 479 of file cbhey.cc.

References __XSTRING, require, scan_path(), and scan_path_list().

Here is the call graph for this function:

int scan_directory const char *  path,
struct scan_payload *  sp
[static]
 

Scan a directory and pass its contents to the scan_path.

Parameters:
path The directory path to walk.
sp The payload passed down from further up the call chain.
Returns:
Zero if the scanner should stop, otherwise an errno value.

Definition at line 328 of file cbhey.cc.

References require, and scan_path().

Referenced by scan_path().

Here is the call graph for this function:

int scan_file const char *  path,
struct scan_payload *  sp
[static]
 

Hook used to scan a file found in a directory tree.

Parameters:
path The path of the file.
sp The payload passed down from further up the call chain.
Returns:
Zero if the scanner should stop, otherwise an errno value.

Definition at line 420 of file cbhey.cc.

References __XSTRING, cbhey_data, FACTORY_METHOD_SYMBOL, factory_method_t, flFactoryMethod(), FLO_QUERY, FMA_HeyServerHint, FMA_TAG_DONE, and require.

Referenced by scan_path().

Here is the call graph for this function:

int scan_path const char *  path,
struct scan_payload *  sp
[static]
 

Scan a path, determine its type, and pass to the appropriate function (scan_directory/scan_file).

Parameters:
path The path to interrogate.
sp The payload passed down from further up the call chain.
Returns:
Zero if the scanner should stop, otherwise an errno value.

Definition at line 364 of file cbhey.cc.

References require, scan_directory(), and scan_file().

Referenced by scan_cbhey_paths(), scan_directory(), and scan_path_list().

Here is the call graph for this function:

int scan_path_list char *  path_list,
struct scan_payload *  sp
[static]
 

Scan through a colon separate list of paths.

Parameters:
path_list A colon separate list of paths to search.
sp The payload passed down from further up the call chain.
Returns:
Zero if the scanner succeeded, otherwise an errno value.

Definition at line 390 of file cbhey.cc.

References require, and scan_path().

Referenced by scan_cbhey_paths().

Here is the call graph for this function:

const char* type_from_ior const char *  ior  )  [static]
 

Extract the object type from an IOR.

Currently, this function only handles form "IOR:IORs of the ..." and "file://...".

Parameters:
ior The IOR to interpret.
Returns:
A string describing the object type (e.g. "IDL:Foo/Bar:1.0").

Definition at line 242 of file cbhey.cc.

References cbhey_data, interpret_ior(), and require.

Here is the call graph for this function:


Variable Documentation

struct { ... } cbhey_data [static]
 

Global data for the tool.

cd_Flags - Holds the CDF_ flags. cd_InterfaceType - The cast type given on the command line.

Referenced by cbhProcessOptions(), scan_file(), and type_from_ior().


Generated on Fri Oct 22 07:50:29 2004 for CPU Broker by  doxygen 1.3.9.1