Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

sobj_find.c File Reference


Detailed Description

Simple object sub-object finding and substitution methods.

#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
#include "sobject_p.h"

Include dependency graph for sobj_find.c:

Include dependency graph

Data Structures

struct  sobj_find_lister
 Helper structure for finding all sub-objects of an object matching a specified set of criteria. More...

Functions

sobjsobj_substitute_recurse (struct sobj *, const char *, enum sobj_type, sobj_substitute_fn *, void *, int)
 Helper function for sobj_substitute().
int sobj_find (struct sobj *sobj, const char *cn, enum sobj_type type, sobj_find_fn *fn, void *sender, int flags)
 Find sub-objects of the specified object matching the specified criteria.
int sobj_find_cn (struct sobj *sobj, const char *cn, sobj_find_fn *fn, void *sender)
 Find sub-objects of the specified object matching the specified class name.
int sobj_find_type (struct sobj *sobj, enum sobj_type type, sobj_find_fn *fn, void *sender)
 Find sub-objects of the specified object matching the specified type.
int sobj_find_list_fn (struct sobj *sobj, void *sender)
 Helper function for sobj_find_list().
int sobj_find_list (struct sobj *sobj, const char *cn, enum sobj_type type, struct sobj **vec, int vec_size, int flags)
 Create a list of all sub-objects matching the specified criteria.
int sobj_find_cn_list (struct sobj *sobj, const char *cn, struct sobj **vec, int vec_size)
 Create a list of all sub-objects matching the specified class name.
int sobj_find_type_list (struct sobj *sobj, enum sobj_type type, struct sobj **vec, int vec_size)
 Create a list of all sub-objects matching the specified class name.
sobjsobj_substitute (struct sobj *sobj, const char *cn, enum sobj_type type, sobj_substitute_fn *fn, void *sender, int flags)
 In the specified objects substitute sub-objects matching the specified criteria.
sobjsobj_substitute_cn (struct sobj *sobj, const char *cn, sobj_substitute_fn *fn, void *sender)
 In the specified objects substitute sub-objects matching the specified class name.
sobjsobj_substitute_type (struct sobj *sobj, enum sobj_type type, sobj_substitute_fn *fn, void *sender)
 In the specified objects substitute sub-objects matching the specified class name.

Function Documentation

int sobj_find_list_fn struct sobj sobj,
void *  sender
[static]
 

Helper function for sobj_find_list().

Parameters:
sobj A sub-object matching the specified criteria.
sender The lister object. This is an instance of struct sobj_find_lister.
Returns:
The function always returns 0.

struct sobj * sobj_substitute_recurse struct sobj sobj,
const char *  cn,
enum sobj_type  type,
sobj_substitute_fn fn,
void *  sender,
int  flags
[static]
 

Helper function for sobj_substitute().

This function implements the recursion into the called object. The parameters and return value are the same as for sobj_substitute().


Generated on Sat Jul 23 16:05:17 2005 for sobject by  doxygen 1.3.9.1