TupleDescriptor.cpp File Reference

Go to the source code of this file.

Functions

 FENNEL_BEGIN_CPPFILE ("$Id: //open/dev/fennel/tuple/TupleDescriptor.cpp#23 $")
std::ostream & operator<< (std::ostream &str, TupleDescriptor const &tupleDesc)
std::ostream & operator<< (std::ostream &str, TupleAttributeDescriptor const &attrDesc)
 FENNEL_END_CPPFILE ("$Id: //open/dev/fennel/tuple/TupleDescriptor.cpp#23 $")


Function Documentation

FENNEL_BEGIN_CPPFILE ( "$Id: //open/dev/fennel/tuple/TupleDescriptor.cpp#23 $"   ) 

FENNEL_END_CPPFILE ( "$Id: //open/dev/fennel/tuple/TupleDescriptor.cpp#23 $"   ) 

std::ostream& operator<< ( std::ostream &  str,
TupleAttributeDescriptor const &  attrDesc 
)

Definition at line 328 of file TupleDescriptor.cpp.

References TupleAttributeDescriptor::cbStorage, StoredTypeDescriptor::getOrdinal(), TupleAttributeDescriptor::isNullable, TupleAttributeDescriptor::pTypeDescriptor, STANDARD_TYPE_END, and StandardTypeDescriptor::toString().

00331 {
00332     StoredTypeDescriptor::Ordinal ordinal =
00333         attrDesc.pTypeDescriptor->getOrdinal();
00334 
00335     if (ordinal < STANDARD_TYPE_END) {
00336         str << "type = " << StandardTypeDescriptor::toString(
00337             StandardTypeDescriptorOrdinal(ordinal));
00338     } else {
00339         str << "type ordinal = " << ordinal;
00340     }
00341     str << ", isNullable = " << attrDesc.isNullable;
00342     str << ", cbStorage = " << attrDesc.cbStorage;
00343     return str;
00344 }

std::ostream& operator<< ( std::ostream &  str,
TupleDescriptor const &  tupleDesc 
)

Definition at line 316 of file TupleDescriptor.cpp.

00317 {
00318     str << "{" << std::endl;
00319     for (uint i = 0; i < tupleDesc.size(); ++i) {
00320         str << "\t" << i << ":  ";
00321         str << tupleDesc[i];
00322         str << std::endl;
00323     }
00324     str << "}" << std::endl;
00325     return str;
00326 }


Generated on Mon Jun 22 04:00:23 2009 for Fennel by  doxygen 1.5.1