ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions | Variables
utils Namespace Reference

Classes

class  StateReg
 

Functions

def opcua_type_name_to_nb_map
 Return reference to map with OPC UA type names to numerical representation. More...
 
def opcua_type_nb_to_name_map
 Return reference to map with OPC UA type numerical to textual representation. More...
 
def opcua_type_nb_to_name
 Convert OPC UA type from numerical to textual representation. More...
 
def opcua_type_name_to_nb
 Return OPC UA type from textual representation to numeric representation. More...
 
def get_location
 
def get_module
 Get the name of the current module. More...
 
def get_ip_address
 Return IP address of execution node. More...
 
def get_iso_time
 Return ISO8601 time for the time at the invocation. More...
 
def debug
 Print a debug log to stdout. More...
 
def revert_dic
 Revert a dictionary (making the values to keys and vice versa). More...
 
def dic_has_key
 Return True if the given key is in the dictionary. More...
 
def resolve_path
 Resolve the given path. More...
 
def find_file
 Search for a file with the given name in the locations specified. More...
 

Variables

string OPCUA_TYPE_NAME_BOOLEAN = "Boolean"
 
string OPCUA_TYPE_NAME_SBYTE = "SByte"
 
string OPCUA_TYPE_NAME_BYTE = "Byte"
 
string OPCUA_TYPE_NAME_INT16 = "Int16"
 
string OPCUA_TYPE_NAME_UINT16 = "UInt16"
 
string OPCUA_TYPE_NAME_INT32 = "Int32"
 
string OPCUA_TYPE_NAME_UINT32 = "UInt32"
 
string OPCUA_TYPE_NAME_INT64 = "Int64"
 
string OPCUA_TYPE_NAME_UINT64 = "UInt64"
 
string OPCUA_TYPE_NAME_FLOAT = "Float"
 
string OPCUA_TYPE_NAME_DOUBLE = "Double"
 
string OPCUA_TYPE_NAME_STRING = "String"
 
string OPCUA_TYPE_NAME_DATETIME = "DateTime"
 
string OPCUA_TYPE_NAME_BYTESTRING = "ByteString"
 
int OPCUA_TYPE_NAME_BOOLEAN_NB = 1
 
int OPCUA_TYPE_NAME_SBYTE_NB = 2
 
int OPCUA_TYPE_NAME_BYTE_NB = 3
 
int OPCUA_TYPE_NAME_INT16_NB = 4
 
int OPCUA_TYPE_NAME_UINT16_NB = 5
 
int OPCUA_TYPE_NAME_INT32_NB = 6
 
int OPCUA_TYPE_NAME_UINT32_NB = 7
 
int OPCUA_TYPE_NAME_INT64_NB = 8
 
int OPCUA_TYPE_NAME_UINT64_NB = 9
 
int OPCUA_TYPE_NAME_FLOAT_NB = 10
 
int OPCUA_TYPE_NAME_DOUBLE_NB = 11
 
int OPCUA_TYPE_NAME_STRING_NB = 12
 
int OPCUA_TYPE_NAME_DATETIME_NB = 13
 
int OPCUA_TYPE_NAME_BYTESTRING_NB = 14
 
dictionary _opcua_type_map_name_to_nb
 
tuple _opcua_type_map_nb_to_name
 

Function Documentation

def utils.debug (   msg)

Print a debug log to stdout.

def utils.dic_has_key (   dic,
  key 
)

Return True if the given key is in the dictionary.

def utils.find_file (   filename,
  root_dirs = ["INTROOT",
  CFGROOT,
  DATAROOT,
  SYSROOT,
  resource_dirs = ["config",
  audio,
  image,
  model,
  dictionary,
  data,
  exception = True 
)

Search for a file with the given name in the locations specified.

def utils.get_ip_address ( )

Return IP address of execution node.

def utils.get_iso_time ( )

Return ISO8601 time for the time at the invocation.

def utils.get_location (   level = -3)
def utils.get_module ( )

Get the name of the current module.

def utils.opcua_type_name_to_nb (   type_ref)

Return OPC UA type from textual representation to numeric representation.

def utils.opcua_type_name_to_nb_map ( )

Return reference to map with OPC UA type names to numerical representation.

def utils.opcua_type_nb_to_name (   type_ref)

Convert OPC UA type from numerical to textual representation.

def utils.opcua_type_nb_to_name_map ( )

Return reference to map with OPC UA type numerical to textual representation.

def utils.resolve_path (   path)

Resolve the given path.

def utils.revert_dic (   dic)

Revert a dictionary (making the values to keys and vice versa).

Variable Documentation

dictionary utils._opcua_type_map_name_to_nb
tuple utils._opcua_type_map_nb_to_name
string utils.OPCUA_TYPE_NAME_BOOLEAN = "Boolean"
int utils.OPCUA_TYPE_NAME_BOOLEAN_NB = 1
string utils.OPCUA_TYPE_NAME_BYTE = "Byte"
int utils.OPCUA_TYPE_NAME_BYTE_NB = 3
string utils.OPCUA_TYPE_NAME_BYTESTRING = "ByteString"
int utils.OPCUA_TYPE_NAME_BYTESTRING_NB = 14
string utils.OPCUA_TYPE_NAME_DATETIME = "DateTime"
int utils.OPCUA_TYPE_NAME_DATETIME_NB = 13
string utils.OPCUA_TYPE_NAME_DOUBLE = "Double"
int utils.OPCUA_TYPE_NAME_DOUBLE_NB = 11
string utils.OPCUA_TYPE_NAME_FLOAT = "Float"
int utils.OPCUA_TYPE_NAME_FLOAT_NB = 10
string utils.OPCUA_TYPE_NAME_INT16 = "Int16"
int utils.OPCUA_TYPE_NAME_INT16_NB = 4
string utils.OPCUA_TYPE_NAME_INT32 = "Int32"
int utils.OPCUA_TYPE_NAME_INT32_NB = 6
string utils.OPCUA_TYPE_NAME_INT64 = "Int64"
int utils.OPCUA_TYPE_NAME_INT64_NB = 8
string utils.OPCUA_TYPE_NAME_SBYTE = "SByte"
int utils.OPCUA_TYPE_NAME_SBYTE_NB = 2
string utils.OPCUA_TYPE_NAME_STRING = "String"
int utils.OPCUA_TYPE_NAME_STRING_NB = 12
string utils.OPCUA_TYPE_NAME_UINT16 = "UInt16"
int utils.OPCUA_TYPE_NAME_UINT16_NB = 5
string utils.OPCUA_TYPE_NAME_UINT32 = "UInt32"
int utils.OPCUA_TYPE_NAME_UINT32_NB = 7
string utils.OPCUA_TYPE_NAME_UINT64 = "UInt64"
int utils.OPCUA_TYPE_NAME_UINT64_NB = 9