Architecture of server



  • I have a task. Create server for my qt-project. It have to get query in format: "[job] [command] [attributes]". But there are many jobs. "Strategy" pattern. But I want to find another way. How I can to do it?



  • Get your favourite Design Patters book out of your bookcase and get reading?



  • Another nice but tough way: create a grammar (e.g. using Extended Backus–Naur Form), embed code into that grammar and feed a parser generator (e.g ANTLR) with your stuff. Should work, good luck. ;-D


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.