language-extensions/python/src/PythonParam.cpp
//-------------------------------------------------------------------------------------------------
// Name: PythonBooleanParam::RetrieveValueAndStrLenInd
//
// Description:
//  Retrieves the value from the namespace and populates m_value and m_strLenOrInd
//

:RetrieveValueAndStrLenInd
Description:
Retrieves the value from the namespace and populates m_value and m_strLenOrInd
: RetrieveValueAndStrLenInd Description : Retrieves the value from the namespace and populates m_value and m_strLenOrInd
void PythonBooleanParam::RetrieveValueAndStrLenInd(bp::object mainNamespace)
{
	bp::dict dictNamespace = bp::extract<bp::dict>(mainNamespace);
	if (dictNamespace.has_key(m_name))
	{
		bp::object tempObj = mainNamespace[m_name];
		m_strLenOrInd = SQL_NULL_DATA;
		if (!tempObj.is_none())
		{
			bp::extract<bool> extractedObj(tempObj);
			if (extractedObj.check())
			{
				m_value.push_back(static_cast<SQLCHAR>(bool(extractedObj)));
				m_strLenOrInd = sizeof(bool);
			}
		}
	}
}
void PythonBooleanParam :: RetrieveValueAndStrLenInd ( bp :: object mainNamespace ) { bp :: dict dictNamespace = bp :: extract < bp :: dict > ( mainNamespace ) ; if ( dictNamespace . has_key ( m_name ) ) { bp :: object tempObj = mainNamespace [ m_name ] ; m_strLenOrInd = SQL_NULL_DATA ; if ( ! tempObj . is_none ( ) ) { bp :: extract < bool > extractedObj ( tempObj ) ; if ( extractedObj . check ( ) ) { m_value . push_back ( static_cast < SQLCHAR > ( bool ( extractedObj ) ) ) ; m_strLenOrInd = sizeof ( bool ) ; } } } }
Name: PythonBooleanParam::RetrieveValueAndStrLenInd
Description:
Retrieves the value from the namespace and populates m_value and m_strLenOrInd
Name : PythonBooleanParam :: RetrieveValueAndStrLenInd Description : Retrieves the value from the namespace and populates m_value and m_strLenOrInd