From a4f8fcde0e7d4a592eb07628a08b5534abdb2613 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Fri, 24 Dec 2010 02:54:28 +0000 Subject: Add support for XML and JSON formats to file database component. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1052430 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/kernel/fstream.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sca-cpp/trunk/kernel') diff --git a/sca-cpp/trunk/kernel/fstream.hpp b/sca-cpp/trunk/kernel/fstream.hpp index 8efb798b57..99fc51565f 100644 --- a/sca-cpp/trunk/kernel/fstream.hpp +++ b/sca-cpp/trunk/kernel/fstream.hpp @@ -56,6 +56,10 @@ public: fclose(file); } + const bool fail() { + return file == NULL; + } + ofstream& vprintf(const char* fmt, ...) { va_list args; va_start (args, fmt); -- cgit v1.2.3