core/find.h File Reference


Detailed Description

Id
find.h 1182 2008-12-22 22:08:36Z dchassin
Copyright (C) 2008 Battelle Memorial Institute

Definition in file find.h.

Go to the source code of this file.

Defines

#define CF_CLASS   0x0004
 class criteria is invariant
#define CF_CLOCK   0x0010
 clock criteria is variant
#define CF_CONSTANT   0x8000
 entire criteria is invariant
#define CF_FLAGS   0x1000
 flags criteria is variant
#define CF_GROUPID   0x4000
 groupid criteria is invariant
#define CF_ID   0x0002
 id criteria is invariant
#define CF_INSVC   0x0400
 in-service criteria is invariant
#define CF_LAT   0x0100
 latitude criteria is invariant
#define CF_LONG   0x0200
 longitude criteria is invariant
#define CF_MODULE   0x2000
 module criteria is invariant
#define CF_NAME   0x0080
 name criteria is invariant
#define CF_OUTSVC   0x0800
 out-service criteria is invariant
#define CF_PARENT   0x0020
 parent criteria is invariant
#define CF_PROPERTY   0x0040
 property criteria is variant
#define CF_RANK   0x0008
 rank criteria is invariant
#define CF_SIZE   0x0001
 size criteria is invariant

Typedefs

typedef unsigned int PGMCONSTFLAGS
 find program constant criteria flags

Functions

char * find_file (char *name, char *path, int mode)
 Search for a file in the specified path (or in GLPATH environment variable) access flags: 0 = exist only, 2 = write, 4 = read, 6 = read/write.
struct s_object_list * find_first (FINDLIST *list)
 Returns the first object currently in the the search list return.
int find_makearray (FINDLIST *list, struct s_object_list ***objs)
 Makes an array from the objects currently in the search list result.
struct s_object_list * find_next (FINDLIST *list, struct s_object_list *obj)
 Return the next object in the currenet search list.
FINDLIST * find_objects (FINDLIST *list,...)
 Search for objects that match criteria start may be a previous search result, or FT_NEW.
FINDLIST * findlist_copy (FINDLIST *list)
 Make a copy of a findlist.


GridLAB-DTM Version 2.0
An open-source project initiated by the US Department of Energy