Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » Definition visibility problem
Definition visibility problem [message #1715410] Mon, 23 November 2015 11:57 Go to next message
Muhammad Uzair is currently offline Muhammad UzairFriend
Messages: 35
Registered: November 2015
Member
Hi,

I am having problem is the visibility of enumerations.

Following enumeration is defined in an ASN file:
AccessStratumRelease ::=	ENUMERATED { rel8, rel9, rel10, rel11, rel12, spare3, spare2, spare1, ...}


In another module, in which this ASN file is imported, an instance of this enumeration is defined
AccessStratumRelease p_ReleaseIndicator_UE


Afterwards, the value of this 'p_ReleaseIndicator_UE' is checked using statement
if (not match(p_ReleaseIndicator_UE, complement(rel8)))


Upon compiling, I am getting this error
"There is no visible definition with name `rel8' in module `module name'"

I have tried passing this enum member as AccessStratumRelease :rel8, but that doesn't help either. I need your help in resolving this error.

Best Regards,
Muhammad Uzair


Re: Definition visibility problem [message #1715430 is a reply to message #1715410] Mon, 23 November 2015 14:17 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Muhammad,

the syntax for inline templates is

match(<value>, <type>:<template>)


so you need to use:

if (not match(p_ReleaseIndicator_UE, AccessStratumRelease : complement(rel8)))


Is this what you've tried?

Best regards

Elemer
Re: Definition visibility problem [message #1715546 is a reply to message #1715430] Tue, 24 November 2015 10:41 Go to previous message
Muhammad Uzair is currently offline Muhammad UzairFriend
Messages: 35
Registered: November 2015
Member
Hi Elemer,

Thanks for correcting me, I haven't tried that before.

Best Regards,
Muhammad Uzair
Previous Topic:Reference to an (evaluatable) constant value was expected instead of module parameter
Next Topic:Missing Tabs for Graphical Editor
Goto Forum:
  


Current Time: Fri Sep 20 18:49:57 GMT 2024

Powered by FUDForum. Page generated in 0.03804 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top