Am 04.10.2013 15:56, schrieb Olaf Radicke:
...
Okay, now I'm ready. Here you can find my solution. I wrote a german
documentation:
https://github.com/OlafRadicke/tntnet_the_book/blob/master/markdown/de/210_Reverserouteing.markdown

And in my own project you can find an example implementation:

https://github.com/OlafRadicke/peruschim_cpp/tree/feature_trustet_user/src/RouteReverse

And his using:
https://github.com/OlafRadicke/peruschim_cpp/blob/feature_trustet_user/src/Core/manager/initcomponent.h
https://github.com/OlafRadicke/peruschim_cpp/blob/feature_trustet_user/src/Core/views/parts/user-session.ecpp.html

But I'm not 100% sure, that it is thread safe. So can you poof it and
give me a feedback please.


Gratings,
Why not just use constants?

In a include:

   namespace url
   {
        static const char SwitchToHandheldVersion[] =
   "/SwitchToHandheldVersion";
        static const char RSSfeedView[] = "/rss.xml";
        ...
   }

Then in the ecpp:

|     <a href="<$ url::SwitchToHandheldVersion $>">|

If you want to change the url, just change it in the header and recompile. It is much less overhead and not need for a lookup table.


Tommi
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to