Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Architecture of server

    General and Desktop
    3
    3
    1652
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tucnak last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • A
        andre last edited by

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

        1 Reply Last reply Reply Quote 0
        • V
          vidar last edited by

          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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post