ajnam.c
Prints a report of the server attributes available (for entrails)
Synopsis
Prototype
void ajNamPrintSvrAttr (
AjPFile outf,
AjBool full
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file |
AjBool | full | Input | Full output if AjTrue |
void | | RETURN | |
Input
full: | (Input) | Full output if AjTrue |
Input & Output
Returns
Description
Prints a report of the server attributes available (for entrails)
See Also
See other functions in this section
Availability
In release 6.4.0
Prints a report of the database attributes available (for entrails)
Synopsis
Prototype
void ajNamPrintDbAttr (
AjPFile outf,
AjBool full
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file |
AjBool | full | Input | Full output if AjTrue |
void | | RETURN | |
Input
full: | (Input) | Full output if AjTrue |
Input & Output
Returns
Description
Prints a report of the database attributes available (for entrails)
See Also
See other functions in this section
Availability
In release 6.4.0
Prints a report of the resource attributes available (for entrails)
Synopsis
Prototype
void ajNamPrintRsAttr (
AjPFile outf,
AjBool full
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file |
AjBool | full | Input | Full output if AjTrue |
void | | RETURN | |
Input
full: | (Input) | Full output if AjTrue |
Input & Output
Returns
Description
Prints a report of the resource attributes available (for entrails)
See Also
See other functions in this section
Availability
In release 6.4.0
Return the value for a server attribute
Synopsis
Prototype
AjBool ajNamSvrGetAttrC (
const AjPStr name,
const char* attribute,
AjPStr* value
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | server name |
const char* | attribute | Input | server attribute name |
AjPStr* | value | Output | attribute value |
AjBool | | RETURN | true if found |
Input
name: | (Input) | server name |
attribute: | (Input) | server attribute name |
Output
value: | (Output) | attribute value |
Returns
Description
Return the value for a server attribute
See Also
See other functions in this section
Availability
In release 6.4.0
Return the value for a server attribute
Synopsis
Prototype
AjBool ajNamSvrGetAttrS (
const AjPStr name,
const AjPStr attribute,
AjPStr* value
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | server name |
const AjPStr | attribute | Input | server attribute name |
AjPStr* | value | Output | attribute value |
AjBool | | RETURN | true if found |
Input
name: | (Input) | server name |
attribute: | (Input) | server attribute name |
Output
value: | (Output) | attribute value |
Returns
Description
Return the value for a server attribute
See Also
See other functions in this section
Availability
In release 6.4.0
Return a list of names and values for all of a server defined attributes
Synopsis
Prototype
AjPList ajNamSvrGetAttrlist (
const AjPStr name
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | server name |
AjPList | | RETURN | Nam-value list |
Input
Returns
Description
Return a list of names and values for all of a server defined attributes
See Also
See other functions in this section
Availability
In release 6.4.0
Return the value for a server database attribute
Synopsis
Prototype
AjBool ajNamSvrGetdbAttrC (
const AjPStr name,
const AjPStr dbname,
const char* attribute,
AjPStr* value
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | server name |
const AjPStr | dbname | Input | database name |
const char* | attribute | Input | database attribute name |
AjPStr* | value | Output | attribute value |
AjBool | | RETURN | true if found |
Input
name: | (Input) | server name |
dbname: | (Input) | database name |
attribute: | (Input) | database attribute name |
Output
value: | (Output) | attribute value |
Returns
Description
Return the value for a server database attribute
See Also
See other functions in this section
Availability
In release 6.4.0
Return the value for a database attribute
Synopsis
Prototype
AjBool ajNamSvrGetdbAttrS (
const AjPStr name,
const AjPStr dbname,
const AjPStr attribute,
AjPStr* value
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | server name |
const AjPStr | dbname | Input | database name |
const AjPStr | attribute | Input | database attribute name |
AjPStr* | value | Output | attribute value |
AjBool | | RETURN | true if found |
Input
name: | (Input) | server name |
dbname: | (Input) | database name |
attribute: | (Input) | database attribute name |
Output
value: | (Output) | attribute value |
Returns
Description
Return the value for a database attribute
See Also
See other functions in this section
Availability
In release 6.4.0
Returns server access method information
Synopsis
Prototype
AjBool ajNamSvrDetails (
const AjPStr name,
AjPStr* type,
AjPStr* scope,
AjBool* id,
AjBool* qry,
AjBool* all,
AjPStr* comment,
AjPStr* svrversion,
AjPStr* methods,
AjPStr* defined,
AjPStr* cachedirectory,
AjPStr* cachefile,
AjPStr* url
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | Server name |
AjPStr* | type | Output | datatype - 'Protein', 'Nucleic' etc. |
AjPStr* | scope | Output | datatype scope Sequence Features etc. |
AjBool* | id | Output | ajTrue = can access single entries |
AjBool* | qry | Output | ajTrue = can access wild/query entries |
AjBool* | all | Output | ajTrue = can access all entries |
AjPStr* | comment | Output | comment about server |
AjPStr* | svrversion | Output | Server version |
AjPStr* | methods | Output | server access methods formatted |
AjPStr* | defined | Output | server definition file short name |
AjPStr* | cachedirectory | Output | cache directory name |
AjPStr* | cachefile | Output | cache file name |
AjPStr* | url | Output | server URL |
AjBool | | RETURN | ajTrue if server details were found |
Input
Output
type: | (Output) | datatype - 'Protein', 'Nucleic' etc. |
scope: | (Output) | datatype scope Sequence Features etc. |
id: | (Output) | ajTrue = can access single entries |
qry: | (Output) | ajTrue = can access wild/query entries |
all: | (Output) | ajTrue = can access all entries |
comment: | (Output) | comment about server |
svrversion: | (Output) | Server version |
methods: | (Output) | server access methods formatted |
defined: | (Output) | server definition file short name |
cachedirectory: | (Output) | cache directory name |
cachefile: | (Output) | cache file name |
url: | (Output) | server URL |
Returns
AjBool: | ajTrue if server details were found |
Description
Returns server access method information
See Also
See other functions in this section
Availability
In release 6.4.0
Return the value for a database attribute
Synopsis
Prototype
AjBool ajNamDbGetAttrC (
const AjPStr name,
const char* attribute,
AjPStr* value
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | database name |
const char* | attribute | Input | database attribute name |
AjPStr* | value | Output | attribute value |
AjBool | | RETURN | true if found |
Input
name: | (Input) | database name |
attribute: | (Input) | database attribute name |
Output
value: | (Output) | attribute value |
Returns
Description
Return the value for a database attribute
See Also
See other functions in this section
Availability
In release 6.4.0
Return the value for a database attribute
Synopsis
Prototype
AjBool ajNamDbGetAttrS (
const AjPStr name,
const AjPStr attribute,
AjPStr* value
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | database name |
const AjPStr | attribute | Input | database attribute name |
AjPStr* | value | Output | attribute value |
AjBool | | RETURN | true if found |
Input
name: | (Input) | database name |
attribute: | (Input) | database attribute name |
Output
value: | (Output) | attribute value |
Returns
Description
Return the value for a database attribute
See Also
See other functions in this section
Availability
In release 6.4.0
Return a list of names and values for all of a database defined attributes
Synopsis
Prototype
AjPList ajNamDbGetAttrlist (
const AjPStr name
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | database name |
AjPList | | RETURN | Nam-value list |
Input
name: | (Input) | database name |
Returns
Description
Return a list of names and values for all of a database defined attributes
See Also
See other functions in this section
Availability
In release 6.4.0
Returns database access method information
Synopsis
Prototype
AjBool ajNamDbDetails (
const AjPStr name,
AjPStr* type,
AjBool* id,
AjBool* qry,
AjBool* all,
AjPStr* comment,
AjPStr* release,
AjPStr* methods,
AjPStr* defined
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | Database name |
AjPStr* | type | Output | sequence type - 'P' or 'N' |
AjBool* | id | Output | ajTrue = can access single entries |
AjBool* | qry | Output | ajTrue = can access wild/query entries |
AjBool* | all | Output | ajTrue = can access all entries |
AjPStr* | comment | Output | comment about database |
AjPStr* | release | Output | database release date |
AjPStr* | methods | Output | database access methods formatted |
AjPStr* | defined | Output | database definition file short name |
AjBool | | RETURN | ajTrue if database details were found |
Input
name: | (Input) | Database name |
Output
type: | (Output) | sequence type - 'P' or 'N' |
id: | (Output) | ajTrue = can access single entries |
qry: | (Output) | ajTrue = can access wild/query entries |
all: | (Output) | ajTrue = can access all entries |
comment: | (Output) | comment about database |
release: | (Output) | database release date |
methods: | (Output) | database access methods formatted |
defined: | (Output) | database definition file short name |
Returns
AjBool: | ajTrue if database details were found |
Description
Returns database access method information
See Also
See other functions in this section
Availability
In release 6.4.0
Writes a simple list of where the internal tables came from..
Synopsis
Prototype
void ajNamDebugOrigin (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Writes a simple list of where the internal tables came from..
See Also
See other functions in this section
Availability
In release 6.4.0
Writes a simple debug report of all servers in the internal table.
Synopsis
Prototype
void ajNamDebugServers (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Writes a simple debug report of all servers in the internal table.
See Also
See other functions in this section
Availability
In release 6.4.0
Writes a simple debug report of all databases in the internal table.
Synopsis
Prototype
void ajNamDebugDatabases (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Writes a simple debug report of all databases in the internal table.
See Also
See other functions in this section
Availability
In release 6.4.0
Writes a simple debug report of all databases in the internal table.
Synopsis
Prototype
void ajNamDebugResources (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Writes a simple debug report of all databases in the internal table.
See Also
See other functions in this section
Availability
In release 6.4.0
Writes a simple debug report of all environment variables
in the internal table.
Synopsis
Prototype
void ajNamDebugVariables (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Writes a simple debug report of all environment variables
in the internal table.
See Also
See other functions in this section
Availability
In release 6.4.0
Writes a simple debug report of all aliases
in the internal table.
Synopsis
Prototype
void ajNamDebugAliases (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Writes a simple debug report of all aliases
in the internal table.
See Also
See other functions in this section
Availability
In release 6.4.0
Creates a AjPList list of all servers in the internal table.
Synopsis
Prototype
void ajNamListListServers (
AjPList svrnames
);
Type | Name | Read/Write | Description |
AjPList | svrnames | Output | Str List of names to be populated |
void | | RETURN | |
Output
svrnames: | (Output) | Str List of names to be populated |
Returns
Description
Creates a AjPList list of all servers in the internal table.
See Also
See other functions in this section
Availability
In release 6.4.0
Creates a AjPList list of all databases in the internal table.
Synopsis
Prototype
void ajNamListListDatabases (
AjPList dbnames
);
Type | Name | Read/Write | Description |
AjPList | dbnames | Output | Str List of names to be populated |
void | | RETURN | |
Output
dbnames: | (Output) | Str List of names to be populated |
Returns
Description
Creates a AjPList list of all databases in the internal table.
See Also
See other functions in this section
Availability
In release 6.4.0
Creates a AjPList list of all databases in the internal table.
Synopsis
Prototype
void ajNamListListResources (
AjPList rsnames
);
Type | Name | Read/Write | Description |
AjPList | rsnames | Output | Str List of names to be populated |
void | | RETURN | |
Output
rsnames: | (Output) | Str List of names to be populated |
Returns
Description
Creates a AjPList list of all databases in the internal table.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns true if the name is a valid database (or server) name.
Database names must start with a letter, and have 1 or more letters,
numbers or underscores. No other characters are permitted.
Synopsis
Prototype
AjBool ajNamIsDbname (
const AjPStr name
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | character string to find in getenv list |
AjBool | | RETURN | True if name was defined. |
Input
name: | (Input) | character string to find in getenv list |
Returns
AjBool: | True if name was defined. |
Description
Returns true if the name is a valid database (or server) name.
Database names must start with a letter, and have 1 or more letters,
numbers or underscores. No other characters are permitted.
See Also
See other functions in this section
Availability
In release 6.4.0
Looks for name as an environment variable.
the AjPStr for this in "value". If not found returns value as NULL;
Synopsis
Prototype
AjBool ajNamGetenvC (
const char* name,
AjPStr* value
);
Type | Name | Read/Write | Description |
const char* | name | Input | character string to find in getenv list |
AjPStr* | value | Output | String for the value. |
AjBool | | RETURN | True if name was defined. |
Input
name: | (Input) | character string to find in getenv list |
Output
value: | (Output) | String for the value. |
Returns
AjBool: | True if name was defined. |
Description
Looks for name as an environment variable.
the AjPStr for this in "value". If not found returns value as NULL;
See Also
See other functions in this section
Availability
In release 6.4.0
Looks for name as an environment variable.
the AjPStr for this in "value". If not found returns NULL;
Synopsis
Prototype
AjBool ajNamGetenvS (
const AjPStr name,
AjPStr* value
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | character string to find in getenv list |
AjPStr* | value | Output | String for the value. |
AjBool | | RETURN | True if name was defined. |
Input
name: | (Input) | character string to find in getenv list |
Output
value: | (Output) | String for the value. |
Returns
AjBool: | True if name was defined. |
Description
Looks for name as an environment variable.
the AjPStr for this in "value". If not found returns NULL;
See Also
See other functions in this section
Availability
In release 6.4.0
Looks for name as an alias in the hash table and if found returns
the AjPStr for this in "value". If not found returns NULL;
Synopsis
Prototype
AjBool ajNamGetAliasC (
const char* name,
AjPStr* value
);
Type | Name | Read/Write | Description |
const char* | name | Input | character string find in hash table. |
AjPStr* | value | Output | Str for the value. |
AjBool | | RETURN | True if name was defined. |
Input
name: | (Input) | character string find in hash table. |
Output
value: | (Output) | Str for the value. |
Returns
AjBool: | True if name was defined. |
Description
Looks for name as an alias in the hash table and if found returns
the AjPStr for this in "value". If not found returns NULL;
See Also
See other functions in this section
Availability
In release 6.4.0
Looks for name as an alias in the hash table and if found returns
the AjPStr for this in "value". If not found returns NULL;
Synopsis
Prototype
AjBool ajNamGetAliasS (
const AjPStr namestr,
AjPStr* value
);
Type | Name | Read/Write | Description |
const AjPStr | namestr | Input | character string find in hash table. |
AjPStr* | value | Output | Str for the value. |
AjBool | | RETURN | True if name was defined. |
Input
namestr: | (Input) | character string find in hash table. |
Output
value: | (Output) | Str for the value. |
Returns
AjBool: | True if name was defined. |
Description
Looks for name as an alias in the hash table and if found returns
the AjPStr for this in "value". If not found returns NULL;
See Also
See other functions in this section
Availability
In release 6.4.0
Looks for name as an (upper case) environment variable,
and then as-is in the hash table and if found returns
the AjPStr for this in "value". If not found returns NULL;
Synopsis
Prototype
AjBool ajNamGetValueC (
const char* name,
AjPStr* value
);
Type | Name | Read/Write | Description |
const char* | name | Input | character string find in hash table. |
AjPStr* | value | Output | Str for the value. |
AjBool | | RETURN | True if name was defined. |
Input
name: | (Input) | character string find in hash table. |
Output
value: | (Output) | Str for the value. |
Returns
AjBool: | True if name was defined. |
Description
Looks for name as an (upper case) environment variable,
and then as-is in the hash table and if found returns
the AjPStr for this in "value". If not found returns NULL;
See Also
See other functions in this section
Availability
In release 6.4.0
Looks for name as an (upper case) environment variable,
and then as-is in the hash table and if found returns
the AjPStr for this in "value". If not found returns NULL;
Synopsis
Prototype
AjBool ajNamGetValueS (
const AjPStr name,
AjPStr* value
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | character string find in hash table. |
AjPStr* | value | Output | String for the value. |
AjBool | | RETURN | True if name was defined. |
Input
name: | (Input) | character string find in hash table. |
Output
value: | (Output) | String for the value. |
Returns
AjBool: | True if name was defined. |
Description
Looks for name as an (upper case) environment variable,
and then as-is in the hash table and if found returns
the AjPStr for this in "value". If not found returns NULL;
See Also
See other functions in this section
Availability
In release 6.4.0
Looks for name in the server hash table and if found returns
the attribute for this. If not found returns NULL;
Synopsis
Prototype
AjBool ajNamServer (
const AjPStr name
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | character string find in hash table. |
AjBool | | RETURN | true if server name is valid. |
Input
name: | (Input) | character string find in hash table. |
Returns
AjBool: | true if server name is valid. |
Description
Looks for name in the server hash table and if found returns
the attribute for this. If not found returns NULL;
See Also
See other functions in this section
Availability
In release 6.4.0
Looks for name in the database hash table and if found returns
true.
Synopsis
Prototype
AjBool ajNamDatabase (
const AjPStr name
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | character string find in hash table. |
AjBool | | RETURN | true if database name is valid. |
Input
name: | (Input) | character string find in hash table. |
Returns
AjBool: | true if database name is valid. |
Description
Looks for name in the database hash table and if found returns
true.
See Also
See other functions in this section
Availability
In release 6.4.0
Looks for name in the database hash table and the database hash
table and if found returns the true name for this. If not found
returns NULL.
Synopsis
Prototype
AjBool ajNamAliasDatabase (
AjPStr* Pname
);
Type | Name | Read/Write | Description |
AjPStr* | Pname | Modify | character string to find in hash table. |
AjBool | | RETURN | true if database name is valid. |
Input & Output
Pname: | (Modify) | character string to find in hash table. |
Returns
AjBool: | true if database name is valid. |
Description
Looks for name in the database hash table and the database hash
table and if found returns the true name for this. If not found
returns NULL.
See Also
See other functions in this section
Availability
In release 6.4.0
Looks for a database name for a specific server.
Reads the server cache file to find the database.
Synopsis
Prototype
AjBool ajNamDatabaseServer (
const AjPStr name,
const AjPStr server
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | Database name to find for server |
const AjPStr | server | Input | Server name |
AjBool | | RETURN | true if database name is valid. |
Input
name: | (Input) | Database name to find for server |
server: | (Input) | Server name |
Returns
AjBool: | true if database name is valid. |
Description
Looks for a database name for a specific server.
Reads the server cache file to find the database.
See Also
See other functions in this section
Availability
In release 6.4.0
Looks for a database name for a specific server.
Reads the server cache file to find the database.
Synopsis
Prototype
AjBool ajNamAliasServer (
AjPStr* Pname,
const AjPStr server
);
Type | Name | Read/Write | Description |
AjPStr* | Pname | Modify | character string to find in hash table. |
const AjPStr | server | Input | Server name |
AjBool | | RETURN | true if database name is valid. |
Input
server: | (Input) | Server name |
Input & Output
Pname: | (Modify) | character string to find in hash table. |
Returns
AjBool: | true if database name is valid. |
Description
Looks for a database name for a specific server.
Reads the server cache file to find the database.
See Also
See other functions in this section
Availability
In release 6.4.0
Reads the database cachefile for a server and counts the number of databases
Searches emboss_standard and the user directory ~/.embossdata/
testing the file data in each file found and parsing the most recent file.
cache files should all start with a comment line
containing the file name and the creation date.
Synopsis
Prototype
ajuint ajNamSvrCount (
const AjPStr server
);
Type | Name | Read/Write | Description |
const AjPStr | server | Input | Server name |
ajuint | | RETURN | Number of databases |
Input
server: | (Input) | Server name |
Returns
ajuint: | Number of databases |
Description
Reads the database cachefile for a server and counts the number of databases
Searches emboss_standard and the user directory ~/.embossdata/
testing the file data in each file found and parsing the most recent file.
cache files should all start with a comment line
containing the file name and the creation date.
See Also
See other functions in this section
Availability
In release 6.4.0
Reads the database cachefile for a server and lists the databases.
Searches emboss_standard and the user directory ~/.embossdata/
testing the file data in each file found and parsing the most recent file.
cache files should all start with a comment line
containing the file name and the creation date.
Synopsis
Prototype
void ajNamSvrListListDatabases (
const AjPStr server,
AjPList dbnames
);
Type | Name | Read/Write | Description |
const AjPStr | server | Input | Server name |
AjPList | dbnames | Output | Str List of names to be populated |
void | | RETURN | |
Input
server: | (Input) | Server name |
Output
dbnames: | (Output) | Str List of names to be populated |
Returns
Description
Reads the database cachefile for a server and lists the databases.
Searches emboss_standard and the user directory ~/.embossdata/
testing the file data in each file found and parsing the most recent file.
cache files should all start with a comment line
containing the file name and the creation date.
See Also
See other functions in this section
Availability
In release 6.4.0
Initialise the variable and database definitions. Find the definition
files and read them.
Synopsis
Prototype
void ajNamInit (
const char* prefix
);
Type | Name | Read/Write | Description |
const char* | prefix | Input | Default prefix for all file
and variable names. |
void | | RETURN | |
Input
prefix: | (Input) | Default prefix for all file
and variable names. |
Returns
Description
Initialise the variable and database definitions. Find the definition
files and read them.
See Also
See other functions in this section
Availability
In release 6.4.0
Delete the initialisation values in the table.
Synopsis
Prototype
void ajNamExit (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Delete the initialisation values in the table.
See Also
See other functions in this section
Availability
In release 6.4.0
Looks for a server name in the known definitions.
Synopsis
Prototype
AjBool ajNamSvrTest (
const AjPStr svrname
);
Type | Name | Read/Write | Description |
const AjPStr | svrname | Input | Server name. |
AjBool | | RETURN | ajTrue on success. |
Input
svrname: | (Input) | Server name. |
Returns
AjBool: | ajTrue on success. |
Description
Looks for a server name in the known definitions.
See Also
See other functions in this section
Availability
In release 6.4.0
Gets the URL definition for a server definition.
Synopsis
Prototype
AjBool ajNamSvrGetUrl (
const AjPStr svrname,
AjPStr* url
);
Type | Name | Read/Write | Description |
const AjPStr | svrname | Input | Server name. |
AjPStr* | url | Output | URL returned. |
AjBool | | RETURN | ajTrue if success. |
Input
svrname: | (Input) | Server name. |
Output
url: | (Output) | URL returned. |
Returns
AjBool: | ajTrue if success. |
Description
Gets the URL definition for a server definition.
See Also
See other functions in this section
Availability
In release 6.4.0
Gets the datatype matching a query, and updates the datatype in the query
Synopsis
Prototype
const char* ajNamQueryGetDatatypeC (
const AjPQuery qry
);
Type | Name | Read/Write | Description |
const AjPQuery | qry | Input | Database query |
const char* | | RETURN | Database type |
Input
qry: | (Input) | Database query |
Returns
const char*: | Database type |
Description
Gets the datatype matching a query, and updates the datatype in the query
See Also
See other functions in this section
Availability
In release 6.4.0
Gets the URL definition for a server definition.
Synopsis
Prototype
const AjPStr ajNamQueryGetUrl (
const AjPQuery qry
);
Type | Name | Read/Write | Description |
const AjPQuery | qry | Input | Database query |
const AjPStr | | RETURN | URL value |
Input
qry: | (Input) | Database query |
Returns
Description
Gets the URL definition for a server definition.
See Also
See other functions in this section
Availability
In release 6.4.0
Gets alias names for a server's database.
Synopsis
Prototype
AjBool ajNamSvrGetDbalias (
const AjPStr svrname,
AjPStr* dbalias
);
Type | Name | Read/Write | Description |
const AjPStr | svrname | Input | Server name. |
AjPStr* | dbalias | Output | Alias returned. |
AjBool | | RETURN | ajTrue if success. |
Input
svrname: | (Input) | Server name. |
Output
dbalias: | (Output) | Alias returned. |
Returns
AjBool: | ajTrue if success. |
Description
Gets alias names for a server's database.
See Also
See other functions in this section
Availability
In release 6.4.0
Given a query with server name, database name and search fields,
fill in the common fields. The query fields are set later.
This part of the database definition is required (specifically
the "fields" definition) for setting the query details.
See also ajNamSvrQuery, which calls this function if the common
query data is not yet set.
Synopsis
Prototype
AjBool ajNamSvrData (
AjPQuery qry,
ajuint argc,
...
);
Type | Name | Read/Write | Description |
AjPQuery | qry | Modify | Query structure with at least
dbname filled in |
ajuint | argc | Input | Number of additional attribute name/value pairs |
... | vararg | Vararg | Variable length argument list |
AjBool | | RETURN | ajTrue if success. |
Input
argc: | (Input) | Number of additional attribute name/value pairs |
: | (Vararg) | Variable length argument list |
Input & Output
qry: | (Modify) | Query structure with at least
dbname filled in |
Returns
AjBool: | ajTrue if success. |
Description
Given a query with server name, database name and search fields,
fill in the common fields. The query fields are set later.
This part of the database definition is required (specifically
the "fields" definition) for setting the query details.
See also ajNamSvrQuery, which calls this function if the common
query data is not yet set.
See Also
See other functions in this section
Availability
In release 6.4.0
Given a query with server name and search fields,
fill in the access method and some common fields according
to the query level.
Synopsis
Prototype
AjBool ajNamSvrQuery (
AjPQuery qry
);
Type | Name | Read/Write | Description |
AjPQuery | qry | Modify | Query structure with at least
svrname filled in |
AjBool | | RETURN | ajTrue if success. |
Input & Output
qry: | (Modify) | Query structure with at least
svrname filled in |
Returns
AjBool: | ajTrue if success. |
Description
Given a query with server name and search fields,
fill in the access method and some common fields according
to the query level.
See Also
See other functions in this section
Availability
In release 6.4.0
Looks for a database name in the known definitions.
Synopsis
Prototype
AjBool ajNamDbTest (
const AjPStr dbname
);
Type | Name | Read/Write | Description |
const AjPStr | dbname | Input | Database name. |
AjBool | | RETURN | ajTrue on success. |
Input
dbname: | (Input) | Database name. |
Returns
AjBool: | ajTrue on success. |
Description
Looks for a database name in the known definitions.
See Also
See other functions in this section
Availability
In release 6.4.0
Gets the enumerated type for a database definition.
Synopsis
Prototype
AjBool ajNamDbGetType (
const AjPStr dbname,
ajuint* itype
);
Type | Name | Read/Write | Description |
const AjPStr | dbname | Input | Database name. |
ajuint* | itype | Output | Database enumerated type |
AjBool | | RETURN | ajTrue if success. |
Input
dbname: | (Input) | Database name. |
Output
itype: | (Output) | Database enumerated type |
Returns
AjBool: | ajTrue if success. |
Description
Gets the enumerated type for a database definition.
See Also
See other functions in this section
Availability
In release 6.4.0
Gets the URL definition for a database definition.
Synopsis
Prototype
AjBool ajNamDbGetUrl (
const AjPStr dbname,
AjPStr* url
);
Type | Name | Read/Write | Description |
const AjPStr | dbname | Input | Database name. |
AjPStr* | url | Output | URL returned. |
AjBool | | RETURN | ajTrue if success. |
Input
dbname: | (Input) | Database name. |
Output
url: | (Output) | URL returned. |
Returns
AjBool: | ajTrue if success. |
Description
Gets the URL definition for a database definition.
See Also
See other functions in this section
Availability
In release 6.4.0
Gets an alias name for a database.
Synopsis
Prototype
AjBool ajNamDbGetDbalias (
const AjPStr dbname,
AjPStr* dbalias
);
Type | Name | Read/Write | Description |
const AjPStr | dbname | Input | Database name. |
AjPStr* | dbalias | Output | Alias returned. |
AjBool | | RETURN | ajTrue if success. |
Input
dbname: | (Input) | Database name. |
Output
dbalias: | (Output) | Alias returned. |
Returns
AjBool: | ajTrue if success. |
Description
Gets an alias name for a database.
See Also
See other functions in this section
Availability
In release 6.4.0
Gets the index directory for a database.
Synopsis
Prototype
AjBool ajNamDbGetIndexdir (
const AjPStr dbname,
AjPStr* indexdir
);
Type | Name | Read/Write | Description |
const AjPStr | dbname | Input | Database name. |
AjPStr* | indexdir | Output | Directory path returned. |
AjBool | | RETURN | ajTrue if success. |
Input
dbname: | (Input) | Database name. |
Output
indexdir: | (Output) | Directory path returned. |
Returns
AjBool: | ajTrue if success. |
Description
Gets the index directory for a database.
See Also
See other functions in this section
Availability
In release 6.4.0
Sets an alias name for a database query.
Synopsis
Prototype
AjBool ajNamQuerySetDbalias (
AjPQuery qry
);
Type | Name | Read/Write | Description |
AjPQuery | qry | Modify | Database query. |
AjBool | | RETURN | ajTrue if success. |
Input & Output
qry: | (Modify) | Database query. |
Returns
AjBool: | ajTrue if success. |
Description
Sets an alias name for a database query.
See Also
See other functions in this section
Availability
In release 6.4.0
Given a query with database name and search fields,
fill in the common fields. The query fields are set later.
This part of the database definition is required (specifically
the "fields" definition) for setting the query details.
See also ajNamDbQuery, which calls this function if the common
query data is not yet set.
Synopsis
Prototype
AjBool ajNamDbData (
AjPQuery qry,
ajuint argc,
...
);
Type | Name | Read/Write | Description |
AjPQuery | qry | Modify | Query structure with at least
dbname filled in |
ajuint | argc | Input | Number of additional attribute name/value pairs |
... | vararg | Vararg | Variable length argument list |
AjBool | | RETURN | ajTrue if success. |
Input
argc: | (Input) | Number of additional attribute name/value pairs |
: | (Vararg) | Variable length argument list |
Input & Output
qry: | (Modify) | Query structure with at least
dbname filled in |
Returns
AjBool: | ajTrue if success. |
Description
Given a query with database name and search fields,
fill in the common fields. The query fields are set later.
This part of the database definition is required (specifically
the "fields" definition) for setting the query details.
See also ajNamDbQuery, which calls this function if the common
query data is not yet set.
See Also
See other functions in this section
Availability
In release 6.4.0
Given a query with database name and search fields,
fill in the access method and some common fields according
to the query level.
Synopsis
Prototype
AjBool ajNamDbQuery (
AjPQuery qry
);
Type | Name | Read/Write | Description |
AjPQuery | qry | Modify | Query structure with at least
dbname filled in |
AjBool | | RETURN | ajTrue if success. |
Input & Output
qry: | (Modify) | Query structure with at least
dbname filled in |
Returns
AjBool: | ajTrue if success. |
Description
Given a query with database name and search fields,
fill in the access method and some common fields according
to the query level.
See Also
See other functions in this section
Availability
In release 6.4.0
Given a query with no database name and search fields, check
datatype specific fields according to the query level.
Synopsis
Prototype
AjBool ajNamFileQuery (
AjPQuery qry
);
Type | Name | Read/Write | Description |
AjPQuery | qry | Modify | Query structure with no database name |
AjBool | | RETURN | ajTrue if success. |
Input & Output
qry: | (Modify) | Query structure with no database name |
Returns
AjBool: | ajTrue if success. |
Description
Given a query with no database name and search fields, check
datatype specific fields according to the query level.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the install directory root for all file searches
(package level)
Synopsis
Prototype
const AjPStr ajNamValueInstalldir (
void
);
Type | Name | Read/Write | Description |
const AjPStr | | RETURN | Install directory root |
Returns
const AjPStr: | Install directory root |
Description
Returns the install directory root for all file searches
(package level)
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the package name for the library
Synopsis
Prototype
const AjPStr ajNamValuePackage (
void
);
Type | Name | Read/Write | Description |
const AjPStr | | RETURN | Package name |
Returns
const AjPStr: | Package name |
Description
Returns the package name for the library
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the system information for the library
Synopsis
Prototype
const AjPStr ajNamValueSystem (
void
);
Type | Name | Read/Write | Description |
const AjPStr | | RETURN | Version number |
Returns
const AjPStr: | Version number |
Description
Returns the system information for the library
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the version number for the library
Synopsis
Prototype
const AjPStr ajNamValueVersion (
void
);
Type | Name | Read/Write | Description |
const AjPStr | | RETURN | Version number |
Returns
const AjPStr: | Version number |
Description
Returns the version number for the library
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the directory for all file searches
(package level)
Synopsis
Prototype
const AjPStr ajNamValueRootdir (
void
);
Type | Name | Read/Write | Description |
const AjPStr | | RETURN | Package level root directory |
Returns
const AjPStr: | Package level root directory |
Description
Returns the directory for all file searches
(package level)
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the base directory for all for all file searches
(above package level).
Synopsis
Prototype
const AjPStr ajNamValueBasedir (
void
);
Type | Name | Read/Write | Description |
const AjPStr | | RETURN | Base directory |
Returns
const AjPStr: | Base directory |
Description
Returns the base directory for all for all file searches
(above package level).
See Also
See other functions in this section
Availability
In release 6.4.0
Resolves a variable name if the input string starts with a dollar sign.
Synopsis
Prototype
AjBool ajNamResolve (
AjPStr* name
);
Type | Name | Read/Write | Description |
AjPStr* | name | Output | String |
AjBool | | RETURN | ajTrue on success. |
Output
Returns
AjBool: | ajTrue on success. |
Description
Resolves a variable name if the input string starts with a dollar sign.
See Also
See other functions in this section
Availability
In release 6.4.0
Sets special internal variables to reflect their presence.
Currently these are "namdebug, namvalid"
Synopsis
Prototype
AjBool ajNamSetControl (
const char* optionName
);
Type | Name | Read/Write | Description |
const char* | optionName | Input | option name |
AjBool | | RETURN | ajTrue if option was recognised |
Input
optionName: | (Input) | option name |
Returns
AjBool: | ajTrue if option was recognised |
Description
Sets special internal variables to reflect their presence.
Currently these are "namdebug, namvalid"
See Also
See other functions in this section
Availability
In release 6.4.0
Return the value for a resource attribute
Synopsis
Prototype
AjBool ajNamRsAttrValueC (
const char* name,
const char* attribute,
AjPStr* value
);
Type | Name | Read/Write | Description |
const char* | name | Input | resource name |
const char* | attribute | Input | resource attribute |
AjPStr* | value | Output | resource value |
AjBool | | RETURN | true if found |
Input
name: | (Input) | resource name |
attribute: | (Input) | resource attribute |
Output
value: | (Output) | resource value |
Returns
Description
Return the value for a resource attribute
See Also
See other functions in this section
Availability
In release 6.4.0
Return the value for a resource attribute
Synopsis
Prototype
AjBool ajNamRsAttrValueS (
const AjPStr name,
const AjPStr attribute,
AjPStr* value
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | resource name |
const AjPStr | attribute | Input | resource attribute |
AjPStr* | value | Output | resource value |
AjBool | | RETURN | true if found |
Input
name: | (Input) | resource name |
attribute: | (Input) | resource attribute |
Output
value: | (Output) | resource value |
Returns
Description
Return the value for a resource attribute
See Also
See other functions in this section
Availability
In release 6.4.0
Return the value for a resource attribute of type 'list'
Synopsis
Prototype
AjBool ajNamRsListValue (
const AjPStr name,
AjPStr* value
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | resource name |
AjPStr* | value | Output | resource value |
AjBool | | RETURN | true if found |
Input
name: | (Input) | resource name |
Output
value: | (Output) | resource value |
Returns
Description
Return the value for a resource attribute of type 'list'
See Also
See other functions in this section
Availability
In release 6.4.0