botsense  3.2.0
RoadNarrows Client-Server Proxied Services Framework
BotSense.BotSenseTypes.BsClientAppInfo Class Reference
Inheritance diagram for BotSense.BotSenseTypes.BsClientAppInfo:

Public Member Functions

def __init__ (self)
 
def __sizeof__ (self)
 
def __getitem__ (self, y)
 
def __setitem__ (self, y, v)
 
def __iter__ (self)
 
def __str__ (self)
 
def ListAttrs (self)
 

Detailed Description

BotSense Client Application Info and Callback Wrapper Class.

    When an application (library) establishes an application-specific
    virtual connection, this static information and callbacks are passed
    to the BotSense client library.

    The information and callbacks are optional. The BotSense library will
    ignore any member value that is set to None or if the class instance
    is None (everything is ignored).

Definition at line 880 of file BotSenseTypes.py.

Constructor & Destructor Documentation

def BotSense.BotSenseTypes.BsClientAppInfo.__init__ (   self)
Initialize BotSense Proxy Message Header instance. 

Definition at line 893 of file BotSenseTypes.py.

References BotSense.BotSenseTypes.BsProxyMsgHdr._attrlist, BotSense.BotSenseTypes.BsVConnInfo._attrlist, and BotSense.BotSenseTypes.BsClientAppInfo._attrlist.

893  def __init__(self):
894  """ Initialize BotSense Proxy Message Header instance. """
895  bsCore.BsClientAppInfo_T.__init__(self)
896 
897  self._attrlist = ['app_name', 'brief', 'version', 'date', 'maintainer',
898  'license', 'fnGetMsgName']

Member Function Documentation

def BotSense.BotSenseTypes.BsClientAppInfo.__getitem__ (   self,
  y 
)
x.__getitem__(y) <==> x[y] 

Definition at line 908 of file BotSenseTypes.py.

908  def __getitem__(self, y):
909  """ x.__getitem__(y) <==> x[y] """
910  return getattr(self, y)
def BotSense.BotSenseTypes.BsClientAppInfo.__iter__ (   self)
x.__iter__() <==> iter(x) 

Definition at line 923 of file BotSenseTypes.py.

923  def __iter__(self):
924  """ x.__iter__() <==> iter(x) """
925  return self._attrlist.__iter__()
def BotSense.BotSenseTypes.BsClientAppInfo.__setitem__ (   self,
  y,
  v 
)
x.__setitem__(y, v) <==> x[y]=v 

Definition at line 914 of file BotSenseTypes.py.

References BotSense.BotSenseTypes.BsProxyMsgHdr._attrlist, BotSense.BotSenseTypes.BsVConnInfo._attrlist, and BotSense.BotSenseTypes.BsClientAppInfo._attrlist.

914  def __setitem__(self, y, v):
915  """ x.__setitem__(y, v) <==> x[y]=v """
916  if y in self._attrlist:
917  setattr(self, y, v)
918  else:
919  raise AttributeError(y)
def BotSense.BotSenseTypes.BsClientAppInfo.__sizeof__ (   self)
x.__sizeof__() -- size of swig object, in bytes. 

Definition at line 902 of file BotSenseTypes.py.

References BotSense.BotSenseTypes.BsProxyMsgHdr._attrlist, BotSense.BotSenseTypes.BsVConnInfo._attrlist, and BotSense.BotSenseTypes.BsClientAppInfo._attrlist.

902  def __sizeof__(self):
903  """ x.__sizeof__() -- size of swig object, in bytes. """
904  return 8 * len(self._attrlist)
def BotSense.BotSenseTypes.BsClientAppInfo.__str__ (   self)
x.__str__() <==> str(x) <==> print x 

Definition at line 929 of file BotSenseTypes.py.

References BotSense.BotSenseTypes.BsProxyMsgHdr._attrlist, BotSense.BotSenseTypes.BsVConnInfo._attrlist, and BotSense.BotSenseTypes.BsClientAppInfo._attrlist.

929  def __str__(self):
930  """ x.__str__() <==> str(x) <==> print x """
931  d = {}
932  for attr in self._attrlist:
933  d[attr] = getattr(self, attr)
934  return str(d)
def BotSense.BotSenseTypes.BsClientAppInfo.ListAttrs (   self)
Return list of class variable attribute names. 

Definition at line 938 of file BotSenseTypes.py.

References BotSense.BotSenseTypes.BsProxyMsgHdr._attrlist, BotSense.BotSenseTypes.BsVConnInfo._attrlist, and BotSense.BotSenseTypes.BsClientAppInfo._attrlist.

938  def ListAttrs(self):
939  """ Return list of class variable attribute names. """
940  return self._attrlist

The documentation for this class was generated from the following file: