core/find.h File Reference


Detailed Description

Id
find.h,v 1.22 2008/01/31 22:30:05 d3p988 Exp

Definition in file find.h.

Go to the source code of this file.

Classes

union  FINDVALUE
struct  s_findlist
struct  s_findpgm

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_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
#define FF_EXIST   (0x00)
#define FF_READ   (0x04)
#define FF_RW   (FF_WRITE|FF_READ)
#define FF_WRITE   (0x02)
#define FL_GROUP   (FINDLIST*)(-1)
#define FL_NEW   (FINDLIST*)(0)

Typedefs

typedef int(*) COMPAREFUNC (void *, FINDVALUE)
typedef void(*) FOUNDACTION (FINDLIST *, struct s_object_list *)
typedef unsigned int PGMCONSTFLAGS
 find program constant criteria flags

Enumerations

enum  FINDOP {
  EQ = 0, LT = 1, GT = 2, NE = 3,
  LE = 4, GE = 5, NOT = 6, BETWEEN = 7,
  BEFORE = 8, AFTER = 9, SAME = 10, DIFF = 11,
  MATCH = 12, LIKE = 13, UNLIKE = 14, FINDOP_END
}
enum  FINDTYPE {
  OR = -2, AND = -1, FT_END = 0, FT_ID = 1,
  FT_SIZE = 2, FT_CLASS = 3, FT_PARENT = 4, FT_RANK = 5,
  FT_CLOCK = 6, FT_PROPERTY = 7, FT_NAME = 8, FT_LAT = 9,
  FT_LONG = 10, FT_INSVC = 11, FT_OUTSVC = 12, FT_FLAGS = 13,
  FT_MODULE = 14
}

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.
s_object_listfind_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.
s_object_listfind_next (FINDLIST *list, struct s_object_list *obj)
 Return the next object in the currenet search list.
FINDLISTfind_objects (FINDLIST *list,...)
 Search for objects that match criteria start may be a previous search result, or FT_NEW.
PGMCONSTFLAGS find_pgmconstants (FINDPGM *pgm)


Enumeration Type Documentation

enum FINDOP

Enumerator:
EQ 
LT 
GT 
NE 
LE 
GE 
NOT 
BETWEEN 
BEFORE 
AFTER 
SAME 
DIFF 
MATCH 
LIKE 
UNLIKE 
FINDOP_END 

Definition at line 18 of file find.h.

enum FINDTYPE

Enumerator:
OR 
AND 
FT_END 
FT_ID 
FT_SIZE 
FT_CLASS 
FT_PARENT 
FT_RANK 
FT_CLOCK 
FT_PROPERTY 
FT_NAME 
FT_LAT 
FT_LONG 
FT_INSVC 
FT_OUTSVC 
FT_FLAGS 
FT_MODULE 

Definition at line 19 of file find.h.


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