GO2cam Pascal API

Functions

void SPI_TOOL_del_list (int indexList)
 Deletes a tool list.
 
void SPI_TOOL_free_tool ()
 Releases the selected tool.
 
void SPI_TOOL_get_back_list (int indexList)
 Transfers a tool list to the current list to be displayed in the drop-down list.
 
void SPI_TOOL_init (int catalogType, int toolType)
 initializes catalog for tool search
 
void SPI_TOOL_read_boolean_tool (int keyNb, int *bval)
 Reads a boolean value from a tool.
 
void SPI_TOOL_read_integer_tool (int keyNb, int *ival)
 Reads an integer value from a tool.
 
void SPI_TOOL_read_name_tool (int toolIndex, std::string &name)
 Reads the name of one of the tools found.
 
void SPI_TOOL_read_nb_tool (int *numberOfTools)
 Starts the tool search using the criteria given by the functions SPI_TOOL_write_xxx
and return the number of tools resulting from this search.
 
void SPI_TOOL_read_nb_tool_panel (int *numberOfTools, int *indexList)
 Starts the tool search using the criteria given by the functions SPI_TOOL_write_xxx
and return the number of tools resulting from this search.
Each search is stored in a list.
 
void SPI_TOOL_read_real_tool (int keyNb, double *rval)
 Reads a real value from a tool.
 
void SPI_TOOL_read_string_tool (int keyNb, std::string &sval)
 Reads a string value from a tool.
 
int SPI_TOOL_read_tool (const std::string &name)
 Loads a tool structure into memory from the tool name.
 
void SPI_TOOL_write_integer (const std::string &criterion, int keyNb, int ival)
 Prepares a search according to an integer parameter (number of teeth, ...)
 
void SPI_TOOL_write_real (const std::string &criterion, int keyNb, double rval)
 Prepares a search according to a real parameter (diameter, ...)
 
void SPI_TOOL_write_string (const std::string &criterion, int keyNb, const std::string &sval)
 Prepares a search according to a string parameter (reference, ...)
 

Detailed Description

Tools search

Function Documentation

◆ SPI_TOOL_del_list()

void SPI_TOOL_del_list ( int indexList)

Deletes a tool list.

Version
4.6
Parameters
[out]indexListlist index
PCALL(SPI_TOOL_del_list,indexList);
void SPI_TOOL_del_list(int indexList)
Deletes a tool list.
Definition sp_too01.c:62

◆ SPI_TOOL_free_tool()

void SPI_TOOL_free_tool ( )

Releases the selected tool.

Version
6.01
void SPI_TOOL_free_tool()
Releases the selected tool.
Definition sp_too01.c:414

◆ SPI_TOOL_get_back_list()

void SPI_TOOL_get_back_list ( int indexList)

Transfers a tool list to the current list to be displayed in the drop-down list.

Version
4.6
Parameters
[out]indexListlist index
PCALL(SPI_TOOL_get_back_list,indexList);
void SPI_TOOL_get_back_list(int indexList)
Transfers a tool list to the current list to be displayed in the drop-down list.
Definition sp_too01.c:87

◆ SPI_TOOL_init()

void SPI_TOOL_init ( int catalogType,
int toolType )

initializes catalog for tool search

Version
4.5
Parameters
[in]catalogType
  • 1 tools in memory
  • 2 permanent tools
  • 3 prepared tools
  • 4 tools used
[in]toolType(OUT_FORET, ...)
PCALL(SPI_TOOL_init,0,OUT_FORET);
void SPI_TOOL_init(int catalogType, int toolType)
initializes catalog for tool search
Definition sp_too01.c:156

◆ SPI_TOOL_read_boolean_tool()

void SPI_TOOL_read_boolean_tool ( int keyNb,
int * bval )

Reads a boolean value from a tool.

Version
6.01
Parameters
[in]keyNbkey to read
[out]bvalvalue read
ier = ICALL(SPI_TOOL_read_tool,0);
PCALL(SPI_TOOL_read_boolean_tool,BO_TYPE_OUTIL,bval);
void SPI_TOOL_read_boolean_tool(int keyNb, int *bval)
Reads a boolean value from a tool.
Definition sp_too01.c:438
int SPI_TOOL_read_tool(const std::string &name)
Loads a tool structure into memory from the tool name.
Definition sp_too01.c:346

◆ SPI_TOOL_read_integer_tool()

void SPI_TOOL_read_integer_tool ( int keyNb,
int * ival )

Reads an integer value from a tool.

Version
6.01
Parameters
[in]keyNbkey to read
[out]ivalvalue read
ier = ICALL(SPI_TOOL_read_tool,0);
PCALL(SPI_TOOL_read_integer_tool,EO_TYPE_OUTIL,bval);
void SPI_TOOL_read_integer_tool(int keyNb, int *ival)
Reads an integer value from a tool.
Definition sp_too01.c:471

◆ SPI_TOOL_read_name_tool()

void SPI_TOOL_read_name_tool ( int toolIndex,
std::string & name )

Reads the name of one of the tools found.

Version
4.5
Parameters
[in]toolIndextool index to read [0..(nb_tool-1)]
[out]nametool name
PCALL(SPI_TOOL_read_name_tool,0,tool_name);
void SPI_TOOL_read_name_tool(int toolIndex, std::string &name)
Reads the name of one of the tools found.
Definition sp_too01.c:316

◆ SPI_TOOL_read_nb_tool()

void SPI_TOOL_read_nb_tool ( int * numberOfTools)

Starts the tool search using the criteria given by the functions SPI_TOOL_write_xxx
and return the number of tools resulting from this search.

Version
4.5
Parameters
[out]numberOfToolsnumber of tools
PCALL(SPI_TOOL_read_nb_tool,nb_tool);
void SPI_TOOL_read_nb_tool(int *numberOfTools)
Starts the tool search using the criteria given by the functions SPI_TOOL_write_xxx and return the ...
Definition sp_too01.c:289

◆ SPI_TOOL_read_nb_tool_panel()

void SPI_TOOL_read_nb_tool_panel ( int * numberOfTools,
int * indexList )

Starts the tool search using the criteria given by the functions SPI_TOOL_write_xxx
and return the number of tools resulting from this search.
Each search is stored in a list.

Version
4.6
Parameters
[in,out]indexListlist by default | -1 / storage list index
[out]numberOfToolsnumber of tools
Remarks
This function is used to search when the dialog box is displayed.
PCALL(SPI_TOOL_read_nb_tool_panel,nb_tool,indexList);
void SPI_TOOL_read_nb_tool_panel(int *numberOfTools, int *indexList)
Starts the tool search using the criteria given by the functions SPI_TOOL_write_xxx and return the ...
Definition sp_too01.c:112
See also
SPI_TOOL_get_back_list

◆ SPI_TOOL_read_real_tool()

void SPI_TOOL_read_real_tool ( int keyNb,
double * rval )

Reads a real value from a tool.

Version
6.01
Parameters
[in]keyNbkey to read
[out]rvalvalue read
ier = ICALL(SPI_TOOL_read_tool,0);
PCALL(SPI_TOOL_read_real_tool,RO_DIAMETRE,bval);
void SPI_TOOL_read_real_tool(int keyNb, double *rval)
Reads a real value from a tool.
Definition sp_too01.c:504

◆ SPI_TOOL_read_string_tool()

void SPI_TOOL_read_string_tool ( int keyNb,
std::string & sval )

Reads a string value from a tool.

Version
6.01
Parameters
[in]keyNbkey to read
[out]svalvalue read
ier = ICALL(SPI_TOOL_read_tool,0);
PCALL(SPI_TOOL_read_string_tool,SO_NOM_OUTIL,sval);
void SPI_TOOL_read_string_tool(int keyNb, std::string &sval)
Reads a string value from a tool.
Definition sp_too01.c:537

◆ SPI_TOOL_read_tool()

int SPI_TOOL_read_tool ( const std::string & name)

Loads a tool structure into memory from the tool name.

Version
6.01
Parameters
[in]nametool name to read
Returns
SPI_YES if Ok | SPI_NO if error
ier = ICALL(SPI_TOOL_read_tool,toolname);

◆ SPI_TOOL_write_integer()

void SPI_TOOL_write_integer ( const std::string & criterion,
int keyNb,
int ival )

Prepares a search according to an integer parameter (number of teeth, ...)

Version
4.5
Parameters
[in]criterion'=' , '<' , '>' , ...
[in]keyNbsearch key (EO_NOMBRE_DENTS, ...)
[in]ivalinteger to search
See also
SPI_TOOL_read_nb_tool
PCALL(SPI_TOOL_write_integer,'=',EO_NOMBRE_DENTS,2);
void SPI_TOOL_write_integer(const std::string &criterion, int keyNb, int ival)
Prepares a search according to an integer parameter (number of teeth, ...)
Definition sp_too01.c:195

◆ SPI_TOOL_write_real()

void SPI_TOOL_write_real ( const std::string & criterion,
int keyNb,
double rval )

Prepares a search according to a real parameter (diameter, ...)

Version
4.5
Parameters
[in]criterion'=' , '<' , '>' , ...
[in]keyNbsearch key (RO_DIAMETRE, ...)
[in]rvalreal to search
See also
SPI_TOOL_read_nb_tool
PCALL(SPI_TOOL_write_real,'>=,RO_DIAMETRE,20);
void SPI_TOOL_write_real(const std::string &criterion, int keyNb, double rval)
Prepares a search according to a real parameter (diameter, ...)
Definition sp_too01.c:226

◆ SPI_TOOL_write_string()

void SPI_TOOL_write_string ( const std::string & criterion,
int keyNb,
const std::string & sval )

Prepares a search according to a string parameter (reference, ...)

Version
4.5
Parameters
[in]criterion'=' , '<' , '>' , ...
[in]keyNbsearch key (SO_REF_OUTIL, ...)
[in]svalstring to search
See also
SPI_TOOL_read_nb_tool
PCALL(SPI_TOOL_write_string,'=?',SO_REF_OUTIL,'A*');
void SPI_TOOL_write_string(const std::string &criterion, int keyNb, const std::string &sval)
Prepares a search according to a string parameter (reference, ...)
Definition sp_too01.c:257