Use 64 bit integers (if available) when int is not big enough

This commit is contained in:
Franky Braem
2012-06-11 20:36:32 +00:00
parent 1d674b745e
commit 6f8bbc67d1
3 changed files with 34 additions and 2 deletions

View File

@@ -92,6 +92,12 @@ public:
/// An integer value is read
#if defined(POCO_HAVE_INT64)
virtual void value(Int64 v);
/// A 64-bit integer value is read
#endif
virtual void value(const std::string& s);
/// A string value is read.
@@ -135,6 +141,13 @@ inline void DefaultHandler::value(int v)
setValue(v);
}
#if defined(POCO_HAVE_INT64)
inline void DefaultHandler::value(Int64 v)
{
setValue(v);
}
#endif
inline void DefaultHandler::value(const std::string& s)
{

View File

@@ -30,7 +30,7 @@
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
// SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
// FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
// FOR ANY DAMAGES OR OTHER LIABILITY, W#if defined(POCO_HAVE_INT64)HETHER IN CONTRACT, TORT OR OTHERWISE,
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
//
@@ -78,6 +78,12 @@ public:
virtual void value(int v) = 0;
/// An integer value is read
#if defined(POCO_HAVE_INT64)
virtual void value(Int64 v) = 0;
/// A 64-bit integer value is read
#endif
virtual void value(const std::string& value) = 0;