--- a/bthci/bthci2/CommandsEvents/generator/parameter.py Mon May 03 13:34:38 2010 +0300
+++ b/bthci/bthci2/CommandsEvents/generator/parameter.py Fri May 14 16:59:23 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 != ''
+
+