00001 #define TRACE_NAME "NTriplesGenerator"
00002 #include "NTriplesGenerator.h"
00003
00005
00006
00007
00009
00010 NTriplesGenerator::NTriplesGenerator()
00011 {
00012
00013 }
00014
00015 #if 0
00016
00017 NTriplesGenerator::NTriplesGenerator(const NTriplesGenerator& other)
00018 {
00019 NOT_IMPLEMENTED
00020 }
00021
00022 const NTriplesGenerator& NTriplesGenerator::operator=(const NTriplesGenerator& other)
00023 {
00024 NOT_IMPLEMENTED
00025 }
00026
00027 bool NTriplesGenerator::operator==(const NTriplesGenerator& other) const
00028 {
00029 NOT_IMPLEMENTED
00030 }
00031
00032 bool NTriplesGenerator::operator<(const NTriplesGenerator& other) const
00033 {
00034 NOT_IMPLEMENTED
00035 }
00036
00037 size_t NTriplesGenerator::hash() const
00038 {
00039 NOT_IMPLEMENTED
00040 }
00041
00042 std::ostream& NTriplesGenerator::print_to(std::ostream& stream) const
00043 {
00044 NOT_IMPLEMENTED
00045 }
00046
00047 #endif
00048
00049 NTriplesGenerator::~NTriplesGenerator()
00050 {
00051
00052 }
00053
00055
00056
00057
00059
00060 void NTriplesGenerator::add(Triple t)
00061 {
00062 std::cout << "Generator called with triple " << t << std::endl;
00063 for (int i = 0; i<3; i++) {
00064
00065
00066 getSink()->write("<sym>", 5);
00067 if (i < 2) getSink()->write(" ", 1);
00068 }
00069 getSink()->write(".\n", 2);
00070 }
00071
00072
00074
00075
00076
00078
00079 #undef TRACE_NAME