Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Design and Architecture
  4. Design pattern - Exporting results to different formats

Design pattern - Exporting results to different formats

Scheduled Pinned Locked Moved Design and Architecture
designregexxmlarchitecturequestion
4 Posts 3 Posters 0 Views 1 Watching
  • 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.
  • J Offline
    J Offline
    jonnyvargazz
    wrote on last edited by
    #1

    Hello everybody! I'm designing an application that generates some results after doing analytics processes. Then the results can be saved into different formats (like TXT,XML,EXCEL,etc...) and with different formats, deppending user options and the format of data file selected. How do you think is the best way to dessign this part? I'm thinking about using the Factory Pattern, about creating and passing the data to each especific class (one per each file format), and a Decorator pattern that adds the optional data configured by de user. But I don't know if I'm thinking in the best way. Could you bring some ideas? Thank you.

    P 1 Reply Last reply
    0
    • J jonnyvargazz

      Hello everybody! I'm designing an application that generates some results after doing analytics processes. Then the results can be saved into different formats (like TXT,XML,EXCEL,etc...) and with different formats, deppending user options and the format of data file selected. How do you think is the best way to dessign this part? I'm thinking about using the Factory Pattern, about creating and passing the data to each especific class (one per each file format), and a Decorator pattern that adds the optional data configured by de user. But I don't know if I'm thinking in the best way. Could you bring some ideas? Thank you.

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      I produce XML, then XSLT can transform it to other formats, such as HTML and CSV. Excel can read CSV so don't bother writing XLS directly.

      J 1 Reply Last reply
      0
      • P PIEBALDconsult

        I produce XML, then XSLT can transform it to other formats, such as HTML and CSV. Excel can read CSV so don't bother writing XLS directly.

        J Offline
        J Offline
        jonnyvargazz
        wrote on last edited by
        #3

        Thanx for your reply. Y will consider this option.

        S 1 Reply Last reply
        0
        • J jonnyvargazz

          Thanx for your reply. Y will consider this option.

          S Offline
          S Offline
          Sameerkumar Namdeo
          wrote on last edited by
          #4

          Keep the analytical data in Director. Give format to your data using Builder. Builder pattern.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups