// seen by users. Message is available to the client using the server and sent
// to the Logger.
// Type: Method.
-// Args: vrFormat - (R) Format string.
-// ... - (R) Variable number of CMIUtilString type objects.
+// Args: vFormat - (R) Format string.
+// ... - (R) Variable number of CMIUtilString type objects.
// Return: None.
// Throws: None.
//--
-void CMICmnBase::SetErrorDescriptionn( const CMIUtilString & vrFormat, ... ) const
+void CMICmnBase::SetErrorDescriptionn( const CMIUtilString vFormat, ... ) const
{
va_list args;
- va_start( args, vrFormat );
- CMIUtilString strResult = CMIUtilString::FormatValist( vrFormat, args );
+ va_start( args, vFormat );
+ CMIUtilString strResult = CMIUtilString::FormatValist( vFormat, args );
va_end( args );
SetErrorDescription( strResult );
bool HaveErrorDescription( void ) const;
const CMIUtilString & GetErrorDescription( void ) const;
void SetErrorDescription( const CMIUtilString & vrTxt ) const;
- void SetErrorDescriptionn( const CMIUtilString & vrFormat, ... ) const;
+ void SetErrorDescriptionn( const CMIUtilString vFormat, ... ) const;
void SetErrorDescriptionNoLog( const CMIUtilString & vrTxt ) const;
void ClrErrorDescription( void ) const;
CMIUtilThreadLock _lock( m_mutex );
// Send this text to stderr
- const MIuint status = ::fputs( vText.c_str(), stderr );
+ const MIint status = ::fputs( vText.c_str(), stderr );
if( status == EOF )
{
const CMIUtilString errMsg( CMIUtilString::Format( MIRSRC( IDS_STDERR_ERR_NOT_ALL_DATA_WRITTEN ), vText.c_str() ) );
CMIUtilThreadLock _lock( m_mutex );
// Send this text to stdout
- const MIuint status = ::fputs( vText.c_str(), stdout );
+ const MIint status = ::fputs( vText.c_str(), stdout );
if( status == EOF )
{
const CMIUtilString errMsg( CMIUtilString::Format( MIRSRC( IDS_STDOUT_ERR_NOT_ALL_DATA_WRITTEN ), vText.c_str() ) );
// Details: Perform a snprintf format style on a string data. A new string object is
// created and returned.
// Type: Static method.
-// Args: vrFormat - (R) Format string data instruction.
-// ... - (R) Var list args of any type.
+// Args: vFormat - (R) Format string data instruction.
+// ... - (R) Var list args of any type.
// Return: CMIUtilString - Number of splits found in the string data.
// Throws: None.
//--
-CMIUtilString CMIUtilString::Format( const CMIUtilString & vrFormating, ... )
+CMIUtilString CMIUtilString::Format( const CMIUtilString vFormating, ... )
{
va_list args;
- va_start( args, vrFormating );
- CMIUtilString strResult = CMIUtilString::FormatPriv( vrFormating, args );
+ va_start( args, vFormating );
+ CMIUtilString strResult = CMIUtilString::FormatPriv( vFormating, args );
va_end( args );
return strResult;
return false;
const MIint64 nNum = ::strtoul( this->c_str(), nullptr, 16 );
- if( nNum != ULONG_MAX )
+ if( nNum != LONG_MAX )
{
vwrNumber = nNum;
return true;
// Static method:
public:
- static CMIUtilString Format( const CMIUtilString & vrFormating, ... );
+ static CMIUtilString Format( const CMIUtilString vFormating, ... );
static CMIUtilString FormatBinary( const MIuint64 vnDecimal );
static CMIUtilString FormatValist( const CMIUtilString & vrFormating, va_list vArgs );
static bool IsAllValidAlphaAndNumeric( const MIchar & vrText );
virtual CDataObjectBase * CreateCopyOfSelf( void );
virtual bool GetIsDerivedClass( void ) const;
+ // Overrideable:
+ private:
+ virtual void Duplicate( const CDataObject & vrOther );
+
// Overridden:
private:
// From CDataObjectBase
- virtual void Copy( const CDataObject & vrOther );
virtual void Destroy( void );
// Attributes:
//++ ------------------------------------------------------------------------------------
// Details: Perform a bitwise copy of *this object.
-// Type: Overridden.
+// Type: Overrideable.
// Args: T - The object's type.
// vrOther - (R) The other object.
// Return: None.
// Throws: None.
//--
template< typename T >
-void CMIUtilVariant::CDataObject< T >::Copy( const CDataObject & vrOther )
+void CMIUtilVariant::CDataObject< T >::Duplicate( const CDataObject & vrOther )
{
CDataObjectBase::Copy( vrOther );
m_dataObj = vrOther.m_dataObj;