bthci/bthci2/CommandsEvents/generator/parameter.py
branchRCL_3
changeset 16 9f17f914e828
parent 0 29b1cd4cb562
--- a/bthci/bthci2/CommandsEvents/generator/parameter.py	Tue Apr 27 17:48:21 2010 +0300
+++ b/bthci/bthci2/CommandsEvents/generator/parameter.py	Tue May 11 17:15:36 2010 +0300
@@ -1,4 +1,4 @@
-# Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
+# Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
 # All rights reserved.
 # This component and the accompanying materials are made available
 # under the terms of "Eclipse Public License v1.0"
@@ -21,6 +21,24 @@
         param_str += p.toParameter() + ', '
 
     return param_str[:-2]
+    
+def makeOwnedParameters(aParams):
+    param_str = ""
+    
+    for p in aParams:
+        if p.Owned():
+            param_str += p.toParameter() + ', '
+
+    return param_str[:-2]
+    
+def makeNonOwnedParameters(aParams):
+    param_str = ""
+    
+    for p in aParams:
+        if not p.Owned():
+            param_str += p.toParameter() + ', '
+
+    return param_str[:-2]
 
 # Creates a ;\n\t separated string of parameters suitable for class member declarations.
 def makeMembers(aParams):
@@ -145,3 +163,8 @@
     # Returns a string of the format 'iName = aName;'
     def memberAssignment(self):
         return 'i' + self.getName() + ' = a' + self.getName() + ';'
+        
+    def Owned(self):
+        return self.iArray != ''
+    
+