COOPY » Guide  version 0.6.5
Public Member Functions
coopy::store::NameSniffer Class Reference

#include <NameSniffer.h>

Public Member Functions

 NameSniffer (const DataSheet &sheet, const coopy::cmp::CompareFlags &flags, bool autosniff=true)
void sniff (int suggest=-1)
bool resniff (NameSniffer &alt)
int getHeaderHeight () const
int dataWidth () const
int dataHeight () const
virtual std::string suggestColumnName (int col) const
virtual const ColumnTypesuggestColumnType (int col) const
virtual const std::vector
< std::string > & 
suggestNames () const
virtual const std::vector< int > & getSubset () const
virtual const std::vector
< ColumnType > & 
suggestTypes () const
bool isEmbedded ()
bool isFake ()
bool hasSubset () const
bool subset (std::vector< std::string > &names)

Detailed Description

Definition at line 16 of file NameSniffer.h.

Constructor & Destructor Documentation

coopy::store::NameSniffer::NameSniffer ( const DataSheet sheet,
const coopy::cmp::CompareFlags flags,
bool  autosniff = true 
) [inline]

Definition at line 29 of file NameSniffer.h.

References sniff().

Member Function Documentation

int coopy::store::NameSniffer::dataHeight ( ) const [inline]

Definition at line 54 of file NameSniffer.h.

References coopy::store::DataSheet::height().

int coopy::store::NameSniffer::dataWidth ( ) const [inline]

Definition at line 50 of file NameSniffer.h.

References coopy::store::DataSheet::width().

int coopy::store::NameSniffer::getHeaderHeight ( ) const [inline]

Definition at line 45 of file NameSniffer.h.

Referenced by coopy::app::Diff::apply(), and coopy::store::SchemaSniffer::sniff().

virtual const std::vector<int>& coopy::store::NameSniffer::getSubset ( ) const [inline, virtual]

Definition at line 69 of file NameSniffer.h.

bool coopy::store::NameSniffer::hasSubset ( ) const [inline]

Definition at line 85 of file NameSniffer.h.

bool coopy::store::NameSniffer::isEmbedded ( ) [inline]

Definition at line 77 of file NameSniffer.h.

Referenced by coopy::app::Diff::apply(), and write().

bool coopy::store::NameSniffer::isFake ( ) [inline]

Definition at line 81 of file NameSniffer.h.

Referenced by resniff(), coopy::store::SchemaSniffer::sniff(), and write().

bool NameSniffer::resniff ( NameSniffer alt)

Definition at line 249 of file NameSniffer.cpp.

References isFake(), and suggestNames().

void NameSniffer::sniff ( int  suggest = -1)
bool NameSniffer::subset ( std::vector< std::string > &  names)

Definition at line 226 of file NameSniffer.cpp.

References dbg_printf.

Referenced by coopy::cmp::SheetCompare::compare().

std::string NameSniffer::suggestColumnName ( int  col) const [virtual]
virtual const ColumnType& coopy::store::NameSniffer::suggestColumnType ( int  col) const [inline, virtual]
virtual const std::vector<std::string>& coopy::store::NameSniffer::suggestNames ( ) const [inline, virtual]

Definition at line 65 of file NameSniffer.h.

Referenced by resniff(), and coopy::store::SchemaSniffer::sniff().

virtual const std::vector<ColumnType>& coopy::store::NameSniffer::suggestTypes ( ) const [inline, virtual]

Definition at line 73 of file NameSniffer.h.

Referenced by coopy::store::SchemaSniffer::sniff().

The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines