Author: mysqlpp
Date: Sun Aug 30 08:08:55 2009
New Revision: 2573

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2573&view=rev
Log:
Added "overloaded" accessor style to ssxlat.

Modified:
    trunk/Wishlist
    trunk/ssx/parsev2.cpp
    trunk/ssx/parsev2.h

Modified: trunk/Wishlist
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/Wishlist?rev=2573&r1=2572&r2=2573&view=diff
==============================================================================
--- trunk/Wishlist (original)
+++ trunk/Wishlist Sun Aug 30 08:08:55 2009
@@ -40,11 +40,6 @@
     o Document sql_*_null in userman
 
     o SSQLS v2 (http://lists.mysql.com/plusplus/6929):
-
-      - "naked" accessor style: field 'id' generates two functions id(),
-        one taking the value type, the other returning it.  Will require
-        internal renaming of the fields, as with a trailing underscore,
-        but that's probably a good idea anyway.
 
       - Add #warning SSQLS v1 is deprecated to ssqls.h
 

Modified: trunk/ssx/parsev2.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/ssx/parsev2.cpp?rev=2573&r1=2572&r2=2573&view=diff
==============================================================================
--- trunk/ssx/parsev2.cpp (original)
+++ trunk/ssx/parsev2.cpp Sun Aug 30 08:08:55 2009
@@ -128,6 +128,9 @@
        }
        else if (style.compare("get_x")) {
                return stroustrup;
+       }
+       else if (style.compare("x")) {
+               return overloaded;
        }
        else {
                ostringstream o;

Modified: trunk/ssx/parsev2.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/ssx/parsev2.h?rev=2573&r1=2572&r2=2573&view=diff
==============================================================================
--- trunk/ssx/parsev2.h (original)
+++ trunk/ssx/parsev2.h Sun Aug 30 08:08:55 2009
@@ -398,7 +398,8 @@
                        unknown,                        ///< bad style value 
found in .ssqls file
                        camel_case_lower,       ///< generate accessors like \c 
getX()
                        camel_case_upper,       ///< generate accessors like \c 
GetX()
-                       stroustrup                      ///< generate accessors 
like \c get_x()
+                       stroustrup,                     ///< generate accessors 
like \c get_x()
+                       overloaded                      ///< same method name 
for setter and getter
                };
 
                /// \brief Given a raw accessor style value straight from the


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to