當前位置: 首頁>>代碼示例>>C++>>正文


C++ CPP_INFO_FMT函數代碼示例

本文整理匯總了C++中CPP_INFO_FMT函數的典型用法代碼示例。如果您正苦於以下問題:C++ CPP_INFO_FMT函數的具體用法?C++ CPP_INFO_FMT怎麽用?C++ CPP_INFO_FMT使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了CPP_INFO_FMT函數的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: CPP_ENTER

/* {{{ MySQL_ArtResultSetMetaData::getColumnCount() -I- */
unsigned int
MySQL_ArtResultSetMetaData::getColumnCount()
{
	CPP_ENTER("MySQL_ArtResultSetMetaData::getColumnCount");
	CPP_INFO_FMT("this=%p", this);
	CPP_INFO_FMT("column_count=%d", num_fields);
	return num_fields;
}
開發者ID:hossainmurad,項目名稱:mycppcgi,代碼行數:9,代碼來源:mysql_art_rset_metadata.cpp

示例2: CPP_ENTER

/* {{{ MySQL_ConstructedResultSetMetaData::getColumnCount() -I- */
unsigned int
MySQL_ConstructedResultSetMetaData::getColumnCount()
{
	CPP_ENTER("MySQL_ConstructedResultSetMetaData::getColumnCount");
	CPP_INFO_FMT("this=%p", this);
	CPP_INFO_FMT("column_count=%d", parent->num_fields);
	return parent->num_fields;
}
開發者ID:shitfSign,項目名稱:mysql-workbench,代碼行數:9,代碼來源:mysql_cset_metadata.cpp

示例3: CPP_ENTER

/* {{{ MySQL_PreparedResultSetMetaData::getPrecision -I- */
unsigned int
MySQL_PreparedResultSetMetaData::getPrecision(unsigned int columnIndex)
{
	CPP_ENTER("MySQL_PreparedResultSetMetaData::getPrecision");
	CPP_INFO_FMT("this=%p", this);
	checkColumnIndex(columnIndex);
	unsigned int ret = getFieldMeta(columnIndex)->max_length - getScale(columnIndex);
	CPP_INFO_FMT("column=%u precision=%d", columnIndex, ret);
	return ret;
}
開發者ID:shenglonglinapple,項目名稱:slin_code,代碼行數:11,代碼來源:mysql_ps_resultset_metadata.cpp

示例4: CPP_ENTER_WL

/* {{{ MySQL_Connection::prepareStatement() -I- */
sql::PreparedStatement *
MySQL_Connection::prepareStatement(const sql::SQLString& sql)
{
	CPP_ENTER_WL(intern->logger, "MySQL_Connection::prepareStatement");
	CPP_INFO_FMT("query=%s", sql.c_str());
	checkClosed();
	boost::shared_ptr< NativeAPI::NativeStatementWrapper > stmt;

	//TODO change - probably no need to catch and throw here. Logging can be done inside proxy
	try {
		 stmt.reset(&proxy->stmt_init());
	} catch (sql::SQLException& e) {
		CPP_ERR_FMT("No statement : %d:(%s) %s", proxy->errNo(), proxy->sqlstate().c_str(), proxy->error().c_str());
		throw e;
	}

	if (stmt->prepare(sql)) {
		CPP_ERR_FMT("Cannot prepare %d:(%s) %s", stmt->errNo(), stmt->sqlstate().c_str(), stmt->error().c_str());
		sql::SQLException e(stmt->error(), stmt->sqlstate(), stmt->errNo());
		stmt.reset();
		throw e;
	}

	return new MySQL_Prepared_Statement(stmt, this, intern->defaultPreparedStatementResultType, intern->logger);
}
開發者ID:Beirdo,項目名稱:mysql-connector-cpp,代碼行數:26,代碼來源:mysql_connection.cpp

示例5: CPP_ENTER

 /* {{{ MySQL_ArtResultSet::checkValid() -I- */
 void
 MySQL_ArtResultSet::checkValid() const
 {
     CPP_ENTER("MySQL_ArtResultSet::checkValid");
     CPP_INFO_FMT("this=%p", this);
     if (isClosed()) {
         throw sql::InvalidInstanceException("ResultSet has been closed");
     }
 }
開發者ID:AaronZhangL,項目名稱:CC,代碼行數:10,代碼來源:mysql_art_resultset.cpp

示例6: CPP_ENTER

/* {{{ MySQL_ArtResultSetMetaData::getColumnTypeName() -I- */
SQLString
MySQL_ArtResultSetMetaData::getColumnTypeName(unsigned int columnIndex)
{
	CPP_ENTER("MySQL_ArtResultSetMetaData::getColumnTypeName");
	CPP_INFO_FMT("this=%p", this);
	checkColumnIndex(columnIndex);

	return "VARCHAR";
}
開發者ID:shenglonglinapple,項目名稱:slin_code,代碼行數:10,代碼來源:mysql_art_rset_metadata.cpp


注:本文中的CPP_INFO_FMT函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。