I am new to qvt.
I have qvto(first.qvto) file that do transformation. My task is do very similar transformation(second.qvto). But a lot of function for first.qvto and second.qvto are the same. so is there way to create some utiles.qvto file that contains common function?
On 07/03/2013 01:43, yaroslav Molodkov wrote:
> Hello all,
>
> I am new to qvt. I have qvto(first.qvto) file that do transformation.
> My task is do very similar transformation(second.qvto). But a lot of
> function for first.qvto and second.qvto are the same. so is there way
> to create some utiles.qvto file that contains common function?
helper doSomethingCol() : String {
return "Well, this is trivial!!";
}
2. Create a MyTransf.qvto file:
import MyLib;
transformation MyTransf();
main() {
log(doSomethingCool());
}
3. Run your MyTransf.qvto tranfs and you should see in the console:
Well, this is trivial!!
Cheers,
Adolfo.
On 13/03/2013 12:51, yaroslav Molodkov wrote:
> Thanks Ed Willink.
>
>> Yes there are library facilities.
>
> But can you take maybe some link, or some hint? Because I have no idea
> how to do it.
>