Author Topic: Access to Class parameters and arguments  (Read 3136 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8192
  • Karma: +232/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Access to Class parameters and arguments
« on: August 02, 2005, 12:38:56 pm »
Hi,

In the automation interface, how can I get access to the Class parameters or arguments?  I can detect if they exist by using the Subtype, but I can't see how to get at them...

I'm talking about the properties available as ClassParameter and classArgument in the CTF.

Thanx,
Paolo
« Last Edit: August 02, 2005, 12:42:36 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 7732
  • Karma: +103/-18
    • View Profile
Re: Access to Class parameters and arguments
« Reply #1 on: August 02, 2005, 04:00:42 pm »
It's available (to read) in the MiscData(2) field.

Simon
Eve

support@sparxsystems.com

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8192
  • Karma: +232/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Access to Class parameters and arguments
« Reply #2 on: August 02, 2005, 04:35:31 pm »
Quote
It's available (to read) in the MiscData(2) field.

Simon
Thanx, Simon.

I'll check it out when I get to work.  Does this mean I have to parse it like I would the PDATA3 field?

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 7732
  • Karma: +103/-18
    • View Profile
Re: Access to Class parameters and arguments
« Reply #3 on: August 02, 2005, 08:07:17 pm »
Yes you will.

The things to look for are

<PRMn>=%classParamName%;
<TYPn>=%classParamType%;
<DEFn>=%classParamDefault%;
ARGS=%classArguments%;

Where:
  • n is the parameter number you're after (starting at 1)
  • Stuff between % characters is the corresponding code template susbstitution macro for this data.
Simon
Eve

support@sparxsystems.com