SAFplus Runtime Director API  3.0.5
aspMisc Namespace Reference

This module provides common functionalities required by ASP applications and other modules. More...

Functions

def getErrorString
 
def setSaVersionT
 Set the SAF SaVersionT C object. More...
 
def SaVersionT
 Create a new initialized SAF SaVersionT C object. More...
 
def getCNameT
 Convert a clNameT object into a string Its probably a bug somewhere, but sometimes the clNameT is not correctly ended by SWIG, so this function applies fixups. More...
 
def setCNameT
 Put a string into an ASP clNameT C object. More...
 

Variables

dictionary AspError
 

Detailed Description

This module provides common functionalities required by ASP applications and other modules.

Function Documentation

def aspMisc.getCNameT (   clNameT)

Convert a clNameT object into a string Its probably a bug somewhere, but sometimes the clNameT is not correctly ended by SWIG, so this function applies fixups.

Parameters
clNameTASP clNameT C object
Returns
string of the name
def aspMisc.getErrorString (   errCode)
def aspMisc.SaVersionT (   releaseCode,
  major,
  minor 
)

Create a new initialized SAF SaVersionT C object.

Parameters
releaseCodeA single character string indicating the SAF release code
majorSAF major version (integer)
minorSAF minor version (integer)
def aspMisc.setCNameT (   clNameT,
  s 
)

Put a string into an ASP clNameT C object.

Parameters
clNameTthe destination C code
strThe source string
Returns
clNameT
def aspMisc.setSaVersionT (   saVersionT,
  releaseCode,
  major,
  minor 
)

Set the SAF SaVersionT C object.

Parameters
saVersionTThe object (of type asp.SaVersionT) to be modified
releaseCodeA single character string indicating the SAF release code
majorSAF major version (integer)
minorSAF minor version (integer)

Variable Documentation

dictionary aspMisc.AspError
Initial value:
1 = {
2  asp.SA_AIS_OK: "SA_AIS_OK",
3  asp.SA_AIS_ERR_LIBRARY: "SA_AIS_ERR_LIBRARY",
4  asp.SA_AIS_ERR_VERSION: "SA_AIS_ERR_VERSION",
5  asp.SA_AIS_ERR_INIT: "SA_AIS_ERR_INIT",
6  asp.SA_AIS_ERR_TIMEOUT: "SA_AIS_ERR_TIMEOUT",
7  asp.SA_AIS_ERR_TRY_AGAIN: "SA_AIS_ERR_TRY_AGAIN",
8  asp.SA_AIS_ERR_INVALID_PARAM: "SA_AIS_ERR_INVALID_PARAM",
9  asp.SA_AIS_ERR_NO_MEMORY: "SA_AIS_ERR_NO_MEMORY",
10  asp.SA_AIS_ERR_BAD_HANDLE: "SA_AIS_ERR_BAD_HANDLE",
11  asp.SA_AIS_ERR_BUSY: "SA_AIS_ERR_BUSY",
12  asp.SA_AIS_ERR_ACCESS: "SA_AIS_ERR_ACCESS",
13  asp.SA_AIS_ERR_NOT_EXIST: "SA_AIS_ERR_NOT_EXIST",
14  asp.SA_AIS_ERR_NAME_TOO_LONG: "SA_AIS_ERR_NAME_TOO_LONG",
15  asp.SA_AIS_ERR_EXIST: "SA_AIS_ERR_EXIST",
16  asp.SA_AIS_ERR_NO_SPACE: "SA_AIS_ERR_NO_SPACE",
17  asp.SA_AIS_ERR_INTERRUPT: "SA_AIS_ERR_INTERRUPT",
18  asp.SA_AIS_ERR_NAME_NOT_FOUND: "SA_AIS_ERR_NAME_NOT_FOUND",
19  asp.SA_AIS_ERR_NO_RESOURCES: "SA_AIS_ERR_NO_RESOURCES",
20  asp.SA_AIS_ERR_NOT_SUPPORTED: "SA_AIS_ERR_NOT_SUPPORTED",
21  asp.SA_AIS_ERR_BAD_OPERATION: "SA_AIS_ERR_BAD_OPERATION",
22  asp.SA_AIS_ERR_FAILED_OPERATION: "SA_AIS_ERR_FAILED_OPERATION",
23  asp.SA_AIS_ERR_MESSAGE_ERROR: "SA_AIS_ERR_MESSAGE_ERROR",
24  asp.SA_AIS_ERR_QUEUE_FULL: "SA_AIS_ERR_QUEUE_FULL",
25  asp.SA_AIS_ERR_QUEUE_NOT_AVAILABLE: "SA_AIS_ERR_QUEUE_NOT_AVAILABLE",
26  asp.SA_AIS_ERR_BAD_FLAGS: "SA_AIS_ERR_BAD_FLAGS",
27  asp.SA_AIS_ERR_TOO_BIG: "SA_AIS_ERR_TOO_BIG",
28  asp.SA_AIS_ERR_NO_SECTIONS: "SA_AIS_ERR_NO_SECTIONS"
29 }