COOPY » Guide
version 0.6.5
|
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
Defines | |
#define | dbg_printf if (_csv_verbose) printf |
#define | COOPY_ASSERT(x) if (!(x)) { printf("Assertion failure %s:%d !(%s)\n",__FILE__,__LINE__, #x ); coopy_print_trace(stdout,__FILE__,__LINE__); exit(1); } |
#define | COOPY_MEMORY(x) if (!(x)) { printf("Memory allocation failure %s:%d !(%s)\n",__FILE__,__LINE__, #x ); coopy_print_trace(stdout,__FILE__,__LINE__); exit(1); } |
Functions | |
void | coopy_set_verbose (bool verbose) |
bool | coopy_is_verbose () |
void | coopy_set_strict (bool strict) |
bool | coopy_is_strict () |
void | coopy_set_default_table_name (const char *name) |
const char * | coopy_get_default_table_name () |
void | coopy_set_default_eol_style (const char *name) |
const char * | coopy_get_default_eol_style () |
const char * | coopy_eol () |
void | coopy_print_trace (FILE *out, const char *file, int line) |
Variables | |
bool | _csv_verbose |
#define COOPY_ASSERT | ( | x | ) | if (!(x)) { printf("Assertion failure %s:%d !(%s)\n",__FILE__,__LINE__, #x ); coopy_print_trace(stdout,__FILE__,__LINE__); exit(1); } |
Definition at line 26 of file Dbg.h.
Referenced by coopy::store::SheetSchema::addedHeader(), coopy::store::PolySheet::addedHeader(), coopy::store::json::JsonBook::addSheet(), coopy::store::CsvTextBook::addSheet(), coopy::app::Diff::apply(), coopy::cmp::PatchParser::applyHiliteBook(), coopy::store::PolySheet::applyRowCache(), coopy::store::PolySheet::applySchema(), coopy::store::PolySheet::beginTransaction(), coopy::cmp::Viterbi::calculatePath(), coopy::store::PolySheet::canResize(), coopy::store::PolySheet::canWrite(), coopy::store::PolySheet::cellString(), coopy::store::gnumeric::GnumericSheet::cellSummary(), coopy::store::PolySheet::cellSummary(), coopy::cmp::SheetCompare::compare(), coopy_set_function(), coopy::store::PolySheet::copyData(), csvs_diff(), coopy::store::PolySheet::dataTail(), coopy::store::PolySheet::deleteColumn(), coopy::store::PolySheet::deleteData(), coopy::store::PolySheet::deleteRow(), coopy::store::PolySheet::deleteRows(), coopy::store::PolySheet::encode(), coopy::store::PolySheet::endTransaction(), coopy::fold::FoldTool::fold(), fold_expander(), coopy::store::PolySheet::forceHeight(), coopy::store::PolySheet::forceWidth(), coopy::store::PolySheet::getCellAppearance(), coopy::store::PolySheet::getColAppearance(), coopy::store::PolySheet::getComparisonMethod(), coopy::store::PolySheet::getDatabase(), coopy::store::PolySheet::getHash(), coopy::store::PolySheet::getMeta(), coopy::store::PolySheet::getNestedDescription(), coopy::store::PolySheet::getNestedSheet(), coopy::cmp::Viterbi::getPath(), coopy::store::PolySheet::getPool(), coopy::store::PolySheet::getRawHash(), coopy::store::PolySheet::getRowAppearance(), coopy::store::PolySheet::hasDimension(), coopy::store::PolySheet::hasExternalColumnNames(), coopy::store::PolySheet::hasSheetName(), coopy::store::PolySheet::insertColumn(), coopy::store::PolySheet::insertRow(), coopy::store::DataSheet::insertRow(), coopy::store::PolySheet::insertRowOrdered(), coopy::store::DataSheet::insertRowOrdered(), coopy::store::PolySheet::isSequential(), coopy::cmp::MergeOutputIndex::MergeOutputIndex(), WideSheetManager::mergeToLocal(), coopy::store::PolySheet::modifyColumn(), coopy::store::PolySheet::moveColumn(), coopy::store::PolySheet::moveRow(), coopy::store::PolySheet::mustHaveSchema(), coopy::store::remotesql::RemoteSqlTextBook::open(), coopy::store::Poly< SheetSchema >::operator*(), coopy::store::Poly< SheetSchema >::operator->(), coopy::store::json::JsonBook::read(), coopy::store::PolySheet::resize(), coopy::store::PolySheet::rollbackTransaction(), coopy::store::PolySheet::setMeta(), coopy::cmp::SheetPatcher::setNames(), coopy::store::PolySheet::setPool(), coopy::store::PolySheet::setRowOffset(), coopy::store::SchemaSniffer::sniff(), coopy::store::NameSniffer::sniff(), coopy::store::PolySheet::tail(), coopy::store::PolySheet::tail_const(), and coopy::cmp::SheetPatcher::updateSheet().
#define COOPY_MEMORY | ( | x | ) | if (!(x)) { printf("Memory allocation failure %s:%d !(%s)\n",__FILE__,__LINE__, #x ); coopy_print_trace(stdout,__FILE__,__LINE__); exit(1); } |
Definition at line 28 of file Dbg.h.
Referenced by coopy::store::mdb::AccessSheet::AccessSheet(), coopy::store::mdb::JackSheet::JackSheet(), coopy::store::mdb::JackTextBook::JackTextBook(), coopy::store::remotesql::RemoteSqlSheet::RemoteSqlSheet(), and coopy::store::sqlite::SqliteSheet::SqliteSheet().
#define dbg_printf if (_csv_verbose) printf |
Definition at line 8 of file Dbg.h.
Referenced by coopy::store::JsonProperty::add(), coopy::store::sqlite::SqliteTextBook::addSheet(), coopy::store::gnumeric::GnumericTextBook::addSheet(), coopy::store::json::JsonBook::addSheet(), coopy::store::CsvTextBook::addSheet(), coopy::cmp::SqlCompare::apply(), coopy::cmp::PatchParser::apply(), coopy::app::Diff::apply(), coopy::cmp::PatchParser::applyHiliteBook(), coopy::store::sqlite::SqliteSheet::applyRowCache(), coopy::store::PolyBook::attach(), coopy::store::remotesql::RemoteSqlSheet::beginTransaction(), coopy::cmp::SheetPatcher::changeColumn(), coopy::cmp::SheetPatcher::changeRow(), coopy::cmp::MergeOutputTdiff::changeRow(), coopy::cmp::SheetCompare::compare(), coopy::cmp::MeasureMan::compare(), coopy::cmp::BookCompare::compare(), coopy::cmp::MeasureMan::compare1(), coopy::cmp::MeasureMan::compareCore(), coopy::store::sqlite::SqliteSheet::connect(), coopy::store::TextBook::copy(), coopy::store::sqlite::SqliteSheet::create(), coopy::store::PoolImpl::create(), coopy::cmp::MergeOutputNovel::declareLink(), coopy::cmp::MergeOutputIndex::declareLink(), coopy::store::remotesql::RemoteSqlSheet::deleteData(), coopy::os::OS::deleteFile(), coopy::cmp::MergeOutputFilter::emitPreamble(), coopy::store::remotesql::RemoteSqlSheet::endTransaction(), coopy::store::TextBook::equals(), coopy::cmp::DataStat::evaluate2(), coopy::store::PolyBook::expand(), coopy::cmp::MeasurePass::flatten(), coopy::fold::FoldTool::fold(), coopy::store::socialcalc::SocialCalcSheet::fromCsvString(), coopy::store::socialcalc::SocialCalcSheet::fromSocialCalcString(), coopy::store::DataSheet::getHash(), coopy::os::OS::getTemporaryFilename(), coopy::store::gnumeric::GnumericSheet::GnumericSheet(), coopy::store::OrderedSheetRow::invent(), coopy::store::socialcalc::SocialCalcSheet::jsSetup(), coopy::store::gnumeric::GnumericTextBook::load(), coopy::store::PoolImpl::load(), main(), coopy::cmp::ColMan::measure(), coopy::cmp::OrderMerge::merge(), coopy::cmp::Merger::merge(), coopy::cmp::SheetPatcher::mergeAllDone(), coopy::cmp::SheetPatcher::mergeDone(), coopy::cmp::Merger::mergeRow(), coopy::cmp::Patcher::metaHint(), coopy::cmp::Mover::move(), coopy::store::CsvTextBook::nextSheet(), coopy::store::sqlite::SqliteTextBook::open(), coopy::store::mdb::JackTextBook::open(), coopy::store::json::JsonBookFactory::open(), coopy::store::CsvTextBookFactory::open(), coopy::format::FormatSniffer::open(), coopy::store::FileIO::open(), coopy::store::mdb::AccessTextBook::open(), coopy::cmp::OrderMerge::process(), coopy::store::TextBook::provideSheet(), coopy::store::sqlite::SqliteTextBook::read(), coopy::store::json::JsonBook::read(), coopy::store::CsvTextBook::readCsvs(), readPart(), coopy::store::remotesql::RemoteSqlSheet::RemoteSqlSheet(), coopy::store::PoolImpl::save(), coopy::cmp::SheetPatcher::setNames(), coopy::cmp::SheetPatcher::setSheet(), coopy::store::socialcalc::SocialCalcSheet::setup(), shuffle(), coopy::store::SchemaSniffer::sniff(), coopy::store::NameSniffer::sniff(), coopy::store::IndexSniffer::sniff(), coopy::store::NameSniffer::subset(), coopy::cmp::SheetPatcher::updateSheet(), coopy::cmp::SqlCompare::validateSchema(), coopy::store::CsvTextBook::write(), and write().
const char* coopy_eol | ( | ) |
Definition at line 85 of file Dbg.cpp.
References coopy_eol_store.
const char* coopy_get_default_eol_style | ( | ) |
Definition at line 81 of file Dbg.cpp.
References coopy_default_eol_style.
const char* coopy_get_default_table_name | ( | ) |
Definition at line 72 of file Dbg.cpp.
References coopy_default_table_name.
Referenced by coopy::store::WrapBook::attach(), coopy::cmp::SheetCompare::compare(), coopy::fold::FoldTool::fold(), coopy::cmp::MergeOutputEditList::MergeOutputEditList(), coopy::cmp::MergeOutputNovel::MergeOutputNovel(), and coopy::cmp::MergeOutputSqlDiff::MergeOutputSqlDiff().
bool coopy_is_strict | ( | ) |
Definition at line 58 of file Dbg.cpp.
References _csv_strict.
Referenced by coopy::store::ColumnType::setType().
bool coopy_is_verbose | ( | ) |
Definition at line 50 of file Dbg.cpp.
References _csv_verbose.
Referenced by coopy::cmp::SheetPatcher::changeRow(), coopy::cmp::MeasureMan::compare(), coopy::store::TextBook::copy(), coopy::cmp::MergeOutputTdiff::flushRows(), and verb().
void coopy_print_trace | ( | FILE * | out, |
const char * | file, | ||
int | line | ||
) |
void coopy_set_default_eol_style | ( | const char * | name | ) |
Definition at line 77 of file Dbg.cpp.
References coopy_default_eol_style.
Referenced by coopy::app::Options::apply().
void coopy_set_default_table_name | ( | const char * | name | ) |
Definition at line 62 of file Dbg.cpp.
References coopy_default_table_name, and coopy_eol_store.
Referenced by coopy::app::Options::apply().
void coopy_set_strict | ( | bool | strict | ) |
Definition at line 54 of file Dbg.cpp.
References _csv_strict.
Referenced by coopy::app::Options::apply().
void coopy_set_verbose | ( | bool | verbose | ) |
Definition at line 46 of file Dbg.cpp.
References _csv_verbose.
Referenced by coopy::app::Options::apply(), and main().
bool _csv_verbose |
Definition at line 7 of file Dbg.cpp.
Referenced by coopy::cmp::MeasureMan::compare1(), coopy_is_verbose(), coopy_set_verbose(), coopy::cmp::SheetCompare::setVerbose(), and coopy::cmp::BookCompare::setVerbose().