diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-12-24 02:54:28 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-12-24 02:54:28 +0000 |
commit | a4f8fcde0e7d4a592eb07628a08b5534abdb2613 (patch) | |
tree | 1501280d607823c5ed3a8d9db98a5b6aedfe2258 /sca-cpp/trunk/kernel | |
parent | 0d01ae7c048afc0d978394d4a6508273abac55e2 (diff) |
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
Diffstat (limited to 'sca-cpp/trunk/kernel')
-rw-r--r-- | sca-cpp/trunk/kernel/fstream.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); |