CIMPLE tool Key properties comparison issue

Harshitkumar Jain <[email protected]> Fri, 23 Jan 2015 08:34:05 +0000
Newsgroups gmane.network.open-pegasus.general
Message-ID <16E10AC331A7504EB1B4F081885576E99E8594@TOSBLRMBX02.TOSHIBA-TSIP.COM>
--_000_16E10AC331A7504EB1B4F081885576E99E8594TOSBLRMBX02TOSHIB_
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

Hi Team,



We are using CIMPLE tool version 2.0.24 on CentOS7 linux platform. We are f=
acing below issue related to key properties uniqueness amongst instances of=
 a class.



The implementation of the "insert" function in case of and "Instance_MAP" i=
s giving us issues.



inline size_t Instance_Map<CLASS>::insert(CLASS* instance)



It returns -1 "Duplicate instance" whenever we create and insert 2 or more =
instances into the map with different key properties.



The string check seems to be verifying only the first few characters of the=
 key string.



For instance, the insert function returns (-1), if value used for a key pro=
perty is "Setting:1 and "Setting:2". However the same implementation works =
if we use keys like "1:Setting" "2:Setting"



Has anybody faced this issue earlier or is this a known issue?





thanks in advance,
Harshit
The information contained in this e-mail message and in any
attachments/annexure/appendices is confidential to the =

recipient and may contain privileged information. =

If you are not the intended recipient, please notify the
sender and delete the message along with any =

attachments/annexure/appendices. You should not disclose,
copy or otherwise use the information contained in the
message or any annexure. Any views expressed in this e-mail =

are those of the individual sender except where the sender =

specifically states them to be the views of =

Toshiba Software India Pvt. Ltd. (TSIP),Bangalore.

Although this transmission and any attachments are believed to be
free of any virus or other defect that might affect any computer =

system into which it is received and opened, it is the responsibility
of the recipient to ensure that it is virus free and no responsibility =

is accepted by Toshiba Embedded Software India Pvt. Ltd, for any loss or
damage arising in any way from its use.

--_000_16E10AC331A7504EB1B4F081885576E99E8594TOSBLRMBX02TOSHIB_
Content-Type: text/html; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii">
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{mso-style-priority:99;
	mso-style-link:"Plain Text Char";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.PlainTextChar
	{mso-style-name:"Plain Text Char";
	mso-style-priority:99;
	mso-style-link:"Plain Text";
	font-family:"Calibri","sans-serif";}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-IN" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoPlainText">Hi Team,<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">We are using CIMPLE tool version 2.0.24 on CentOS=
7 linux platform. We are facing below issue related to key properties uniqu=
eness amongst instances of a class.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">The implementation of the &quot;insert&quot; func=
tion in case of and &quot;Instance_MAP&quot; is giving us issues.<o:p></o:p=
></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">inline size_t Instance_Map&lt;CLASS&gt;::insert(C=
LASS* instance)<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">It returns -1 &quot;Duplicate instance&quot; when=
ever we create and insert 2 or more instances into the map with different k=
ey properties.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">The string check seems to be verifying only the f=
irst few characters of the key string.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">For instance, the insert function returns (-1), i=
f value used for a key property is &quot;Setting:1 and &quot;Setting:2&quot=
;. However the same implementation works if we use keys like &quot;1:Settin=
g&quot; &quot;2:Setting&quot;<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Has anybody faced this issue earlier or is this a=
 known issue?<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">thanks in advance,<o:p></o:p></p>
<p class=3D"MsoNormal">Harshit<o:p></o:p></p>
</div>
<P><font style=3D"FONT-FAMILY: ; FONT-SIZE: 11px"><font style=3D"FONT-FAMIL=
Y: Times New Roman; FONT-SIZE: 9px">The information contained in this e-mai=
l message and in any attachments/annexure/appendices is confidential to the=
 <br>recipient and may contain privileged information. If you are not the i=
ntended recipient, please notify the<br>sender and delete the message along=
 with any attachments/annexure/appendices. You should not disclose,<br>copy=
 or otherwise use the information contained in the message or any annexure.=
 Any views expressed in this e-mail <br>are those of the individual sender =
except where the sender&nbsp;specifically states them to be the views of&nb=
sp; <br>Toshiba&nbsp;Software India Pvt. Ltd. (TSIP),Bangalore.<br></font><=
/font><font style=3D"FONT-FAMILY: Times New Roman; FONT-SIZE: 9px">Although=
 this transmission and any attachments are believed to be free of any virus=
 or other defect that might affect any computer system into which it is rec=
eived and opened, it is the responsibility of the recipient to ensure that =
it is virus free and no responsibility is accepted by Toshiba&nbsp;Software=
 India Pvt. Ltd, for any loss or damage arising in any way from its use.</f=
ont></P>
<P><font style=3D"FONT-FAMILY: Times New Roman; FONT-SIZE: 9px"></font></P>=
</body>
</html>

--_000_16E10AC331A7504EB1B4F081885576E99E8594TOSBLRMBX02TOSHIB_--