ETSI's Bug Tracker - Part 05: TTCN-3 Runtime Interface
View Issue Details
0005947Part 05: TTCN-3 Runtime Interface Technicalpublic15-10-2011 18:1102-12-2011 12:55
Mateusz Pusz 
Ina Schieferdecker 
normaltrivialN/A
closedfixed 
 
v4.4.1 (published 2012-04)v4.4.1 (published 2012-04) 
TRI 8.5.2.4
Mateusz Pusz/freettcn
0005947: Problem with C++ mapping of TriComponentId::getComponentName()
TriComponentId::getComponentName() should return const reference to Tstring so it should look like:
virtual const Tstring &getComponentName() const = 0;
(see https://github.com/mpusz/FreeTTCN/blob/d2ff73bbb9f4bb5e49b5cabe2c156512e456056c/freettcn/lib/include/freettcn/etsi/tri.h#L69 [^])

Best

Mat
No tags attached.
Issue History
15-10-2011 18:11Mateusz PuszNew Issue
15-10-2011 18:11Mateusz PuszClause Reference(s) => TRI 8.5.2.4
15-10-2011 18:11Mateusz PuszSource (company - Author) => Mateusz Pusz/freettcn
28-11-2011 12:52Gyorgy RethyProjectTTCN-3 Change Requests => Part 05: TTCN-3 Runtime Interface
28-11-2011 16:15Gyorgy RethyNote Added: 0010359
28-11-2011 16:15Gyorgy RethyAssigned To => Ina Schieferdecker
28-11-2011 16:15Gyorgy RethyStatusnew => assigned
28-11-2011 16:15Gyorgy RethyTarget Version => Edition 4.4.1
01-12-2011 15:32Jacob Wieland - SpirentNote Added: 0010487
02-12-2011 07:01Ina SchieferdeckerNote Added: 0010496
02-12-2011 07:02Ina SchieferdeckerStatusassigned => resolved
02-12-2011 07:02Ina SchieferdeckerResolutionopen => fixed
02-12-2011 07:02Ina SchieferdeckerFixed in Version => Edition 4.4.1
02-12-2011 07:02Ina SchieferdeckerStatusresolved => closed
02-12-2011 09:15Mateusz PuszStatusclosed => feedback
02-12-2011 09:15Mateusz PuszResolutionfixed => reopened
02-12-2011 09:15Mateusz PuszNote Added: 0010500
02-12-2011 11:03Ina SchieferdeckerNote Added: 0010510
02-12-2011 12:55Ina SchieferdeckerStatusfeedback => closed
02-12-2011 12:55Ina SchieferdeckerResolutionreopened => fixed

Notes
(0010359)
Gyorgy Rethy   
28-11-2011 16:15   
STF discussion 28/11: Check if there is an error in the standard. If not, postpone the CR to 2012.
(0010487)
Jacob Wieland - Spirent   
01-12-2011 15:32   
that is correct. Please implement as proposed.
(0010496)
Ina Schieferdecker   
02-12-2011 07:01   
Changed all getter methods to const:

class TriAddress {
public:
...
    virtual const Tsize getBitsDataLen()const=0;
...

class TriComponentId {
public:
...
    virtual const Tstring & getComponentName () const =0;
...

class TriException {
public:
...
    virtual const Tsize getBitsDataLen()const=0;
...

class TriMessage {
public:
...
    virtual const Tsize getBitsDataLen()const=0;
...

class TriParameter {
public:
...
    virtual const Tsize getBitsDataLen()const=0;
...

class TriPortId {
public:
...
    virtual const Tsize getPortIndex () const =0;
...

class TriTimerDuration {
public:
...
    virtual const Tfloat getDuration () const =0;
...
(0010500)
Mateusz Pusz   
02-12-2011 09:15   
Please do not add any other consts that requested. They are not needed there. The values are passed there by copy and not a reference or pointer. Adding const to a passing by value only obfuscates the code and does not solve any problem.
(0010510)
Ina Schieferdecker   
02-12-2011 11:03   
well, this sounds inconsistent to the STF - but we buy your C++ expertise and will add const to getComponentName() only