_GetAppList.py
Go to the documentation of this file.
00001 """autogenerated by genpy from appmanager_msgs/GetAppListRequest.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006 
00007 
00008 class GetAppListRequest(genpy.Message):
00009   _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00010   _type = "appmanager_msgs/GetAppListRequest"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """
00013 """
00014   __slots__ = []
00015   _slot_types = []
00016 
00017   def __init__(self, *args, **kwds):
00018     """
00019     Constructor. Any message fields that are implicitly/explicitly
00020     set to None will be assigned a default value. The recommend
00021     use is keyword arguments as this is more robust to future message
00022     changes.  You cannot mix in-order arguments and keyword arguments.
00023 
00024     The available fields are:
00025        
00026 
00027     :param args: complete set of field values, in .msg order
00028     :param kwds: use keyword arguments corresponding to message field names
00029     to set specific fields.
00030     """
00031     if args or kwds:
00032       super(GetAppListRequest, self).__init__(*args, **kwds)
00033 
00034   def _get_types(self):
00035     """
00036     internal API method
00037     """
00038     return self._slot_types
00039 
00040   def serialize(self, buff):
00041     """
00042     serialize message into buffer
00043     :param buff: buffer, ``StringIO``
00044     """
00045     try:
00046       pass
00047     except struct.error as se: self._check_types(se)
00048     except TypeError as te: self._check_types(te)
00049 
00050   def deserialize(self, str):
00051     """
00052     unpack serialized message in str into this message instance
00053     :param str: byte array of serialized message, ``str``
00054     """
00055     try:
00056       end = 0
00057       return self
00058     except struct.error as e:
00059       raise genpy.DeserializationError(e) #most likely buffer underfill
00060 
00061 
00062   def serialize_numpy(self, buff, numpy):
00063     """
00064     serialize message with numpy array types into buffer
00065     :param buff: buffer, ``StringIO``
00066     :param numpy: numpy python module
00067     """
00068     try:
00069       pass
00070     except struct.error as se: self._check_types(se)
00071     except TypeError as te: self._check_types(te)
00072 
00073   def deserialize_numpy(self, str, numpy):
00074     """
00075     unpack serialized message in str into this message instance using numpy for array types
00076     :param str: byte array of serialized message, ``str``
00077     :param numpy: numpy python module
00078     """
00079     try:
00080       end = 0
00081       return self
00082     except struct.error as e:
00083       raise genpy.DeserializationError(e) #most likely buffer underfill
00084 
00085 _struct_I = genpy.struct_I
00086 """autogenerated by genpy from appmanager_msgs/GetAppListResponse.msg. Do not edit."""
00087 import sys
00088 python3 = True if sys.hexversion > 0x03000000 else False
00089 import genpy
00090 import struct
00091 
00092 import appmanager_msgs.msg
00093 
00094 class GetAppListResponse(genpy.Message):
00095   _md5sum = "9d70c6025f6b52f0c15405d866aba787"
00096   _type = "appmanager_msgs/GetAppListResponse"
00097   _has_header = False #flag to mark the presence of a Header object
00098   _full_text = """AppDescription[] apps
00099 
00100 
00101 ================================================================================
00102 MSG: appmanager_msgs/AppDescription
00103 string name
00104 string display
00105 string description
00106 string platform
00107 string status
00108 
00109 """
00110   __slots__ = ['apps']
00111   _slot_types = ['appmanager_msgs/AppDescription[]']
00112 
00113   def __init__(self, *args, **kwds):
00114     """
00115     Constructor. Any message fields that are implicitly/explicitly
00116     set to None will be assigned a default value. The recommend
00117     use is keyword arguments as this is more robust to future message
00118     changes.  You cannot mix in-order arguments and keyword arguments.
00119 
00120     The available fields are:
00121        apps
00122 
00123     :param args: complete set of field values, in .msg order
00124     :param kwds: use keyword arguments corresponding to message field names
00125     to set specific fields.
00126     """
00127     if args or kwds:
00128       super(GetAppListResponse, self).__init__(*args, **kwds)
00129       #message fields cannot be None, assign default values for those that are
00130       if self.apps is None:
00131         self.apps = []
00132     else:
00133       self.apps = []
00134 
00135   def _get_types(self):
00136     """
00137     internal API method
00138     """
00139     return self._slot_types
00140 
00141   def serialize(self, buff):
00142     """
00143     serialize message into buffer
00144     :param buff: buffer, ``StringIO``
00145     """
00146     try:
00147       length = len(self.apps)
00148       buff.write(_struct_I.pack(length))
00149       for val1 in self.apps:
00150         _x = val1.name
00151         length = len(_x)
00152         if python3 or type(_x) == unicode:
00153           _x = _x.encode('utf-8')
00154           length = len(_x)
00155         buff.write(struct.pack('<I%ss'%length, length, _x))
00156         _x = val1.display
00157         length = len(_x)
00158         if python3 or type(_x) == unicode:
00159           _x = _x.encode('utf-8')
00160           length = len(_x)
00161         buff.write(struct.pack('<I%ss'%length, length, _x))
00162         _x = val1.description
00163         length = len(_x)
00164         if python3 or type(_x) == unicode:
00165           _x = _x.encode('utf-8')
00166           length = len(_x)
00167         buff.write(struct.pack('<I%ss'%length, length, _x))
00168         _x = val1.platform
00169         length = len(_x)
00170         if python3 or type(_x) == unicode:
00171           _x = _x.encode('utf-8')
00172           length = len(_x)
00173         buff.write(struct.pack('<I%ss'%length, length, _x))
00174         _x = val1.status
00175         length = len(_x)
00176         if python3 or type(_x) == unicode:
00177           _x = _x.encode('utf-8')
00178           length = len(_x)
00179         buff.write(struct.pack('<I%ss'%length, length, _x))
00180     except struct.error as se: self._check_types(se)
00181     except TypeError as te: self._check_types(te)
00182 
00183   def deserialize(self, str):
00184     """
00185     unpack serialized message in str into this message instance
00186     :param str: byte array of serialized message, ``str``
00187     """
00188     try:
00189       if self.apps is None:
00190         self.apps = None
00191       end = 0
00192       start = end
00193       end += 4
00194       (length,) = _struct_I.unpack(str[start:end])
00195       self.apps = []
00196       for i in range(0, length):
00197         val1 = appmanager_msgs.msg.AppDescription()
00198         start = end
00199         end += 4
00200         (length,) = _struct_I.unpack(str[start:end])
00201         start = end
00202         end += length
00203         if python3:
00204           val1.name = str[start:end].decode('utf-8')
00205         else:
00206           val1.name = str[start:end]
00207         start = end
00208         end += 4
00209         (length,) = _struct_I.unpack(str[start:end])
00210         start = end
00211         end += length
00212         if python3:
00213           val1.display = str[start:end].decode('utf-8')
00214         else:
00215           val1.display = str[start:end]
00216         start = end
00217         end += 4
00218         (length,) = _struct_I.unpack(str[start:end])
00219         start = end
00220         end += length
00221         if python3:
00222           val1.description = str[start:end].decode('utf-8')
00223         else:
00224           val1.description = str[start:end]
00225         start = end
00226         end += 4
00227         (length,) = _struct_I.unpack(str[start:end])
00228         start = end
00229         end += length
00230         if python3:
00231           val1.platform = str[start:end].decode('utf-8')
00232         else:
00233           val1.platform = str[start:end]
00234         start = end
00235         end += 4
00236         (length,) = _struct_I.unpack(str[start:end])
00237         start = end
00238         end += length
00239         if python3:
00240           val1.status = str[start:end].decode('utf-8')
00241         else:
00242           val1.status = str[start:end]
00243         self.apps.append(val1)
00244       return self
00245     except struct.error as e:
00246       raise genpy.DeserializationError(e) #most likely buffer underfill
00247 
00248 
00249   def serialize_numpy(self, buff, numpy):
00250     """
00251     serialize message with numpy array types into buffer
00252     :param buff: buffer, ``StringIO``
00253     :param numpy: numpy python module
00254     """
00255     try:
00256       length = len(self.apps)
00257       buff.write(_struct_I.pack(length))
00258       for val1 in self.apps:
00259         _x = val1.name
00260         length = len(_x)
00261         if python3 or type(_x) == unicode:
00262           _x = _x.encode('utf-8')
00263           length = len(_x)
00264         buff.write(struct.pack('<I%ss'%length, length, _x))
00265         _x = val1.display
00266         length = len(_x)
00267         if python3 or type(_x) == unicode:
00268           _x = _x.encode('utf-8')
00269           length = len(_x)
00270         buff.write(struct.pack('<I%ss'%length, length, _x))
00271         _x = val1.description
00272         length = len(_x)
00273         if python3 or type(_x) == unicode:
00274           _x = _x.encode('utf-8')
00275           length = len(_x)
00276         buff.write(struct.pack('<I%ss'%length, length, _x))
00277         _x = val1.platform
00278         length = len(_x)
00279         if python3 or type(_x) == unicode:
00280           _x = _x.encode('utf-8')
00281           length = len(_x)
00282         buff.write(struct.pack('<I%ss'%length, length, _x))
00283         _x = val1.status
00284         length = len(_x)
00285         if python3 or type(_x) == unicode:
00286           _x = _x.encode('utf-8')
00287           length = len(_x)
00288         buff.write(struct.pack('<I%ss'%length, length, _x))
00289     except struct.error as se: self._check_types(se)
00290     except TypeError as te: self._check_types(te)
00291 
00292   def deserialize_numpy(self, str, numpy):
00293     """
00294     unpack serialized message in str into this message instance using numpy for array types
00295     :param str: byte array of serialized message, ``str``
00296     :param numpy: numpy python module
00297     """
00298     try:
00299       if self.apps is None:
00300         self.apps = None
00301       end = 0
00302       start = end
00303       end += 4
00304       (length,) = _struct_I.unpack(str[start:end])
00305       self.apps = []
00306       for i in range(0, length):
00307         val1 = appmanager_msgs.msg.AppDescription()
00308         start = end
00309         end += 4
00310         (length,) = _struct_I.unpack(str[start:end])
00311         start = end
00312         end += length
00313         if python3:
00314           val1.name = str[start:end].decode('utf-8')
00315         else:
00316           val1.name = str[start:end]
00317         start = end
00318         end += 4
00319         (length,) = _struct_I.unpack(str[start:end])
00320         start = end
00321         end += length
00322         if python3:
00323           val1.display = str[start:end].decode('utf-8')
00324         else:
00325           val1.display = str[start:end]
00326         start = end
00327         end += 4
00328         (length,) = _struct_I.unpack(str[start:end])
00329         start = end
00330         end += length
00331         if python3:
00332           val1.description = str[start:end].decode('utf-8')
00333         else:
00334           val1.description = str[start:end]
00335         start = end
00336         end += 4
00337         (length,) = _struct_I.unpack(str[start:end])
00338         start = end
00339         end += length
00340         if python3:
00341           val1.platform = str[start:end].decode('utf-8')
00342         else:
00343           val1.platform = str[start:end]
00344         start = end
00345         end += 4
00346         (length,) = _struct_I.unpack(str[start:end])
00347         start = end
00348         end += length
00349         if python3:
00350           val1.status = str[start:end].decode('utf-8')
00351         else:
00352           val1.status = str[start:end]
00353         self.apps.append(val1)
00354       return self
00355     except struct.error as e:
00356       raise genpy.DeserializationError(e) #most likely buffer underfill
00357 
00358 _struct_I = genpy.struct_I
00359 class GetAppList(object):
00360   _type          = 'appmanager_msgs/GetAppList'
00361   _md5sum = '9d70c6025f6b52f0c15405d866aba787'
00362   _request_class  = GetAppListRequest
00363   _response_class = GetAppListResponse
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


appmanager_msgs
Author(s): Jihoon
autogenerated on Tue Jan 15 2013 20:38:24