SWIProlog Class Reference

List of all members.

Public Member Functions

 SWIProlog (int argc, char **argv)
 init the prolog engine
 ~SWIProlog ()
 Destructor.
bool consult (const char *filename)
 Consult a KB file (assume a .pl extention).
bool query (const char *predicate, std::vector< std::string > &args)

Detailed Description

Definition at line 49 of file SWIProlog.H.


Constructor & Destructor Documentation

SWIProlog::SWIProlog ( int  argc,
char **  argv 
)

init the prolog engine

Definition at line 50 of file SWIProlog.C.

SWIProlog::~SWIProlog (  ) 

Destructor.

Definition at line 74 of file SWIProlog.C.


Member Function Documentation

bool SWIProlog::consult ( const char *  filename  ) 

Consult a KB file (assume a .pl extention).

Definition at line 80 of file SWIProlog.C.

bool SWIProlog::query ( const char *  predicate,
std::vector< std::string > &  args 
)

Query the predicate given args Note args might change to a value inferd by prolog, For variables, insert an empty string Return the first match and then cuts the tree

Definition at line 104 of file SWIProlog.C.

Referenced by SceneUnderstanding::highOrderRec().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:50 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3