|
|
Choosing A Webhost: |
CVS update of carob/src (ParameterStatement.cpp): msg#00020db.carob.cvs
Date: Wednesday, February 1, 2006 @ 16:49:32 Author: marc Path: /cvsroot/carob/carob/src Modified: ParameterStatement.cpp (1.19 -> 1.20) Added better explanation of streamSettings<T>() and oneShotFilter<T>(). CAROB-55. ------------------------+ ParameterStatement.cpp | 11 +++++++++++ 1 files changed, 11 insertions(+) Index: carob/src/ParameterStatement.cpp diff -u carob/src/ParameterStatement.cpp:1.19 carob/src/ParameterStatement.cpp:1.20 --- carob/src/ParameterStatement.cpp:1.19 Wed Feb 1 12:20:19 2006 +++ carob/src/ParameterStatement.cpp Wed Feb 1 16:49:32 2006 @@ -342,6 +342,17 @@ // - carefully checking that streamSettings<T1>() does not step on streamSettings<T2>() toes std::wostringstream buffer; + // streamSettings<T>() is a function object that will: + + // 1. Modify the default stream settings of 'buffer' + // For instance it will set the minimum precision() to avoid + // rounding when T is a floating-point type. + + // 2. Return a oneShotFilter<T>() that may transform the value + // printed. For instance END_PARAM_TAG will be escaped in value when + // T is std::wstring. + + // streamSettings<defaultT>() and oneShotFilter<defaultT>() do nothing. buffer << START_PARAM_TAG << typeTag << streamSettings<T>() << value << END_PARAM_TAG; inStrings[paramIndex-1] = buffer.str();
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | CVS update of carob/src (SQLDataSerialization.cpp), marc-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
|---|---|
| Next by Date: | CVS update of carob/src (ControllerConnectPolicy.cpp), gilles-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Previous by Thread: | CVS update of carob/src (ParameterStatement.cpp), marc-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Next by Thread: | CVS update of libmysequoia/test-suite/php4/mysql [new], csaba-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home
| advertise | OSDir is
an inevitable website.
|