List:MySQL++« Previous MessageNext Message »
From:Chris Frey Date:October 21 2004 3:48pm
Subject:Re: using namespace?
View as plain text  
I think namespaces would be a major improvement to mysql++, just
that nobody has done it yet. :-)

- Chris

On Thu, Oct 21, 2004 at 03:52:42AM -0700, Sasha Shipka wrote:
> I'm evaluating the use of gtkmm at presentation layer
> and mysql++ at database layer in making client apps
> for Linux and Windows.
> In small test I made, i tried to fill ListView in gtk
> with result of mysql query.
> gtkmm uses namespaces for their classes so they have
> Gtk::TreeModel::Row class, and in mysql++ there is a
> macro which converts Row to MysqlRow. So, when I tried
> to compile my small test i got:
> 
> wndGlasila.cc:28: error: `MysqlRow' is not a member of
> type `Gtk::TreeModel'
> 
> where line 28 is:
> Gtk::TreeModel::Row row = *iter;
> 
> With separation of database and presentation layer
> this will be easy solved, but on other cases that can
> be a problem.
> So, why don't mysql++ use namespaces instead of
> macros?
> In this example TreeModel:;Row and Mysql::Row would
> work fine. 
> 
> 
> 		
> _______________________________
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
> 
> -- 
> MySQL++ Mailing List
> For list archives: http://lists.mysql.com/plusplus
> To unsubscribe:    http://lists.mysql.com/plusplus?unsub=1
Thread
using namespace?Sasha Shipka21 Oct
  • Re: using namespace?Chris Frey21 Oct
    • Re: using namespace?Warren Young21 Oct
      • Re: using namespace?Chris Frey22 Oct
        • Re: using namespace?Warren Young22 Oct
          • Re: using namespace?Sasha Shipka22 Oct
  • Re: using namespace?Warren Young21 Oct