secureswitools/swisistools/source/sisxlibrary/blob.h
changeset 26 04d4a7bbc3e0
parent 0 ba25891c3a9e
equal deleted inserted replaced
25:98b66e4fb0be 26:04d4a7bbc3e0
   170 	/**
   170 	/**
   171 	 * Adds the write the package details into the stream.
   171 	 * Adds the write the package details into the stream.
   172 	 * @param aStream - Stream in which the package entries need to be written.
   172 	 * @param aStream - Stream in which the package entries need to be written.
   173 	 * @param aVerbose - If this option is set then detail description of pkg
   173 	 * @param aVerbose - If this option is set then detail description of pkg
   174 	 * 			will be written into the stream.
   174 	 * 			will be written into the stream.
   175 	 */
   175 	 * @param aCompatible - Flag to notify AddPackageEntry that Dumpsis works in the original,compatible mode
   176  	void AddPackageEntry(std::wostream& aStream, bool aVerbose) const;
   176 	 * or in the new way.
       
   177 	 */
       
   178  	void AddPackageEntry(std::wostream& aStream, bool aVerbose, bool aCompatible) const;
   177 
   179 
   178 private:
   180 private:
   179 	void Duplicate (const CBlob <FieldType>& aInitialiser);
   181 	void Duplicate (const CBlob <FieldType>& aInitialiser);
   180 	 
   182 	 
   181 private:
   183 private:
   465 	return (!(memcmp(iData, aBlob.iData, iSize )));
   467 	return (!(memcmp(iData, aBlob.iData, iSize )));
   466  
   468  
   467 	}
   469 	}
   468 
   470 
   469 template <CSISFieldRoot::TFieldType FieldType> inline
   471 template <CSISFieldRoot::TFieldType FieldType> inline
   470 		void CBlob <FieldType>::AddPackageEntry(std::wostream& aStream, bool aVerbose) const
   472 		void CBlob <FieldType>::AddPackageEntry(std::wostream& aStream, bool aVerbose, bool aCompatible) const
   471 	{
   473 	{
   472 	if(aVerbose)
   474 	if(aVerbose)
   473 		{
   475 		{
   474 		aStream << std::hex;
   476 		aStream << std::hex;
   475 		for (TUint32 i=0; i<iSize; i++)
   477 		for (TUint32 i=0; i<iSize; i++)