ajvar.c
Datatypes: AjPVar none
Variation data
Sections: constructors Variation data destructors Casts variation data modifiers
Constructors
Functions: ajVarNew
Var data constructor
Synopsis
Prototype
AjPVar ajVarNew (
void
);
Type | Name | Read/Write | Description |
AjPVar | | RETURN | New object |
Returns
Description
Var data constructor
See Also
See other functions in this section
Availability
In release 6.4.0
Destruction destroys all internal data structures and frees the
memory allocated for the variation data object.
Functions: ajVarDel
Variation data destructor
Synopsis
Prototype
void ajVarDel (
AjPVar* Pvar
);
Type | Name | Read/Write | Description |
AjPVar* | Pvar | Delete | Variation data object to delete |
void | | RETURN | |
Output
Pvar: | (Delete) | Variation data object to delete |
Returns
Description
Variation data destructor
See Also
See other functions in this section
Availability
In release 6.4.0
Return values from a variation data object
Functions: ajVarGetDb ajVarGetId ajVarGetQryC ajVarGetQryS
Return the database name
Synopsis
Prototype
const AjPStr ajVarGetDb (
const AjPVar var
);
Type | Name | Read/Write | Description |
const AjPVar | var | Input | Variation |
const AjPStr | | RETURN | Database name |
Input
Returns
const AjPStr: | Database name |
Description
Return the database name
See Also
See other functions in this section
Availability
In release 6.4.0
Return the identifier
Synopsis
Prototype
const AjPStr ajVarGetId (
const AjPVar var
);
Type | Name | Read/Write | Description |
const AjPVar | var | Input | Variation |
const AjPStr | | RETURN | Returned id |
Input
Returns
Description
Return the identifier
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the query string of a variation data object.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const char* ajVarGetQryC (
const AjPVar var
);
Type | Name | Read/Write | Description |
const AjPVar | var | Input | Variation data object. |
const char* | | RETURN | Query as a character string. |
Input
var: | (Input) | Variation data object. |
Returns
const char*: | Query as a character string. |
Description
Returns the query string of a variation data object.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the query string of a variation data object.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajVarGetQryS (
const AjPVar var
);
Type | Name | Read/Write | Description |
const AjPVar | var | Input | Variation data object. |
const AjPStr | | RETURN | Query as a string. |
Input
var: | (Input) | Variation data object. |
Returns
const AjPStr: | Query as a string. |
Description
Returns the query string of a variation data object.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Variation data modifiers
Functions: ajVarClear
Resets all data for a variation data object so that it can be reused.
Synopsis
Prototype
void ajVarClear (
AjPVar var
);
Type | Name | Read/Write | Description |
AjPVar | var | Modify | Variation data object |
void | | RETURN | |
Input & Output
var: | (Modify) | Variation data object |
Returns
Description
Resets all data for a variation data object so that it can be reused.
See Also
See other functions in this section
Availability
In release 6.4.0
Miscellaneous functions
Sections: exit
Functions called on exit from the program by ajExit to do
any necessary cleanup and to report internal statistics to the debug file
Functions: ajVarExit
Cleans up variation processing internal memory
Synopsis
Prototype
void ajVarExit (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Cleans up variation processing internal memory
See Also
See other functions in this section
Availability
In release 6.4.0