Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

NTriplesGenerator.cpp

00001 #define TRACE_NAME "NTriplesGenerator"
00002 #include "NTriplesGenerator.h"
00003 
00005 //
00006 //  Standard Member Functions
00007 //
00009 
00010 NTriplesGenerator::NTriplesGenerator()
00011 {
00012     // blank default    
00013 }
00014 
00015 #if 0  /* omit definitions until they are implemented */
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 /* omit definitions until they are implemented */
00048     
00049 NTriplesGenerator::~NTriplesGenerator()
00050 {
00051     // blank default    
00052 }
00053 
00055 //
00056 //  Additional Public Member Functions
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     // need some logic about types of symbols, and maybe
00065     // about chosing output methods to use
00066     getSink()->write("<sym>", 5);
00067     if (i < 2) getSink()->write(" ", 1);
00068     }
00069     getSink()->write(".\n", 2);
00070 }
00071 
00072 
00074 //
00075 //  Additional Private Member Functions
00076 //
00078 
00079 #undef TRACE_NAME

Home to blindfold. This page generated via doxygen 1.2.11.1 Wed Oct 10 16:40:33 2001.