Re: [Quickfix-developers] Rgenerating code after changing xml files in spec/fix44 directory
Brought to you by:
orenmnero
|
From: Djalma R. d. S. F. <drs...@gm...> - 2007-02-13 13:53:46
|
Hi,
It seems that Generator.rb does what you are expecting.
It is really very slow, at least on my PC and it requires that you first
download and install ruby.
I ran generator.bat until the end of its execution and I could see all
files updated, including NewOrderSingle.h.
@GeneratorCPP.rb
...
def messageStart(name, msgtype, required)
...
@depth += 1
@f.puts tabs + "class " + name + " : public Message"
@f.puts tabs + "{"
@f.puts tabs + "public:"
@depth += 1
@f.puts tabs + name + "() : Message(MsgType()) {}"
@f.puts tabs + name + "(const FIX::Message& m) : Message(m) {}"
@f.puts tabs + name + "(const Message& m) : Message(m) {}"
@f.puts tabs + name + "(const #{name}& m) : Message(m) {}"
@f.puts tabs + "static FIX::MsgType MsgType() { return FIX::MsgType(" +
"\"" + msgtype + "\"); }"
...
Djalma
On 2/12/07, Sheetal Chainraj <sch...@gm...> wrote:
>
> QuickFIX Documentation:
> http://www.quickfixengine.org/quickfix/doc/html/index.html
> QuickFIX Support: http://www.quickfixengine.org/services.html
>
>
> Thanks Djalma. I noticed that(- it only changes the
> /src/C++/fix44/MessageCracker.h file. None of the per message headers
> seemt
> o change though. Like the NewOrderSingle.h message itself.
> The script has the entries:
> xsltproc -o ../src/C++/FieldNumbers.h FieldNumbers.xsl FIX44.xml
> xsltproc -o ../src/C++/Fields.h Fields.xsl FIX44.xml
> xsltproc -o ../src/C++/Values.h Values.xsl FIX44.xml
> xsltproc -o ../src/C++/fix40/MessageCracker.h MessageCracker.xsl FIX40.xml
> xsltproc -o ../src/C++/fix41/MessageCracker.h MessageCracker.xsl FIX41.xml
> xsltproc -o ../src/C++/fix42/MessageCracker.h MessageCracker.xsl FIX42.xml
> xsltproc -o ../src/C++/fix43/MessageCracker.h MessageCracker.xsl FIX43.xml
> xsltproc -o ../src/C++/fix44/MessageCracker.h MessageCracker.xsl FIX44.xml
>
>
> But I dont see the Messages.xsl being used anywhere.. should'nt it be?
> Thanks.
>
>
> Djalma Rosa dos Santos Filho wrote:
> >
> > QuickFIX Documentation:
> > http://www.quickfixengine.org/quickfix/doc/html/index.html
> > QuickFIX Support: http://www.quickfixengine.org/services.html
> >
> >
> > Hi Sheetal,
> >
> > Very interesting question. Some collegues made this question to me some
> > time
> > ago, but I didn't know the answer, in my application I prefered to avoid
> > the
> > cracker overhead anyway.
> >
> > But, now looking at the quickfix folders, I found that there are special
> > scripts to to that.
> >
> > Try spec\generate.bat or spec\generate.sh.
> >
> > You should change the dictionaries in the spec directory or change the
> > scripts to point to others.
> >
> > It seems that you must have ruby and msxsl.exe installed (or xsltproc to
> > use
> > generate.sh).
> >
> > I did not test it and I am not sure if these are the only required
> steps.
> >
> > Djalma
> >
> >
> > On 2/7/07, Sheetal Chainraj <sch...@gm...> wrote:
> >>
> >> QuickFIX Documentation:
> >> http://www.quickfixengine.org/quickfix/doc/html/index.html
> >> QuickFIX Support: http://www.quickfixengine.org/services.html
> >>
> >>
> >> I am trying to add new fields to the NewOrderSingle message type. I
> >> added
> >> this in the spec/fix44.xml message. After this, expecting to regnerate
> >> the
> >> correct C++ header files under src/C++/fix44/ , I ran make in the home
> >> directory. It did not generate any new files. I am sure I am missing
> some
> >> step. Can some give me a pointer please?
> >>
> >> thanks,
> >> Sheetal
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Rgenerating-code-after-changing-xml-files-in-spec-fix44-directory-tf3190167.html#a8855920
> >> Sent from the QuickFIX - Dev mailing list archive at Nabble.com.
> >>
> >>
> >>
> -------------------------------------------------------------------------
> >> Using Tomcat but need to do more? Need to support web services,
> security?
> >> Get stuff done quickly with pre-integrated technology to make your job
> >> easier.
> >> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> >> Geronimo
> >>
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >> _______________________________________________
> >> Quickfix-developers mailing list
> >> Qui...@li...
> >> https://lists.sourceforge.net/lists/listinfo/quickfix-developers
> >>
> >
> >
> -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services,
> security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier.
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > Quickfix-developers mailing list
> > Qui...@li...
> > https://lists.sourceforge.net/lists/listinfo/quickfix-developers
> >
>
> --
> View this message in context:
> http://www.nabble.com/Rgenerating-code-after-changing-xml-files-in-spec-fix44-directory-tf3190167.html#a8934804
> Sent from the QuickFIX - Dev mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Quickfix-developers mailing list
> Qui...@li...
> https://lists.sourceforge.net/lists/listinfo/quickfix-developers
>
|