Database in C+

Discussion in 'Mac Programming' started by dieseltwitch, Jan 13, 2009.

  1. dieseltwitch macrumors regular

    Joined:
    Jan 24, 2008
    #1
    Im looking to make a flight log in C+, what is the best way to go about this? basically it will just be a std database. with different ways of looking up past flights. any ideas?
     
  2. maxvamp macrumors 6502a

    maxvamp

    Joined:
    Sep 26, 2002
    Location:
    Somewhere out there
    #2
    Quick question, Why C++?

    I think if we knew a bit more on how and where you were going to use this, we could probably help more. Also you may want to figure out what DB engine you want to use ( SQLite, MySQL, etc ).

    Don't re-invent the wheel if possible.

    Max.
     
  3. pilotError macrumors 68020

    pilotError

    Joined:
    Apr 12, 2006
    Location:
    Long Island
    #3
    How much data are you talking about. Is this a little homegrown type of app or some large thing your talking about.

    Object Oriented databases are pretty rare. Versant is about the closest, but your talking commercial stuff here.
     
  4. maxvamp macrumors 6502a

    maxvamp

    Joined:
    Sep 26, 2002
    Location:
    Somewhere out there
    #4
    What is confusing me here is that the app needs to be written in C++.

    That is usually heavy stuff. If that is the only language known, so be it. However, if the author is writing a Windows app, then C# and SQLExpress would work well, and on everything else, SQLite would work well for a DB engine. It may be a case where filemaker might even work, but that exits the realm of free DBs.

    I need more info....


    Max.
     
  5. GenghisKhan macrumors newbie

    GenghisKhan

    Joined:
    Jan 18, 2009
    #5
    Although the others do have a point

    Why don't you dump all the structures in a binary file. As long as you use fixed values on array sizes the structures all should be of equal size, making the reading back from the binary file an incremental thing.
     

Share This Page