secureswitools/swisistools/source/sisxlibrary/sisstring.h
changeset 26 04d4a7bbc3e0
parent 0 ba25891c3a9e
equal deleted inserted replaced
25:98b66e4fb0be 26:04d4a7bbc3e0
   146 	/**
   146 	/**
   147 	 * Adds the write the package details into the stream.
   147 	 * Adds the write the package details into the stream.
   148 	 * @param aStream - Stream in which the package entries need to be written.
   148 	 * @param aStream - Stream in which the package entries need to be written.
   149 	 * @param aVerbose - If this option is set then detail description of pkg
   149 	 * @param aVerbose - If this option is set then detail description of pkg
   150 	 * 			will be written into the stream.
   150 	 * 			will be written into the stream.
   151 	 */
   151 	 * @param aCompatible - Flag to notify AddPackageEntry that Dumpsis works in the original,compatible mode
   152 	void AddPackageEntry(std::wostream& aStream, bool aVerbose) const;
   152 	 * or in the new way.
       
   153 	 */
       
   154 	void AddPackageEntry(std::wostream& aStream, bool aVerbose, bool aCompatible) const;
       
   155 	/**
       
   156 	 * Adds the write the iby file details into the stream.
       
   157 	 * @param aStream - Stream in which the iby entry need to be written.
       
   158 	 * @param aVerbose - If this option is set then detail description of iby
       
   159 	 * 			will be written into the stream.
       
   160 	 * @param aCompatible - Flag to notify AddIbyEntry that Dumpsis works in the original,compatible mode
       
   161 	 * or in the new way.
       
   162 	 */
       
   163 	void AddIbyEntry(std::wostream& aStream, bool aVerbose, bool aCompatible) const;
   153 
   164 
   154 	/**
   165 	/**
   155 	 * Delete the temporary buffer used for reading the string.
   166 	 * Delete the temporary buffer used for reading the string.
   156 	 * Should be called after this class is not required anymore.
   167 	 * Should be called after this class is not required anymore.
   157 	 */
   168 	 */
   273 inline std::wstring CSISString::GetString() const
   284 inline std::wstring CSISString::GetString() const
   274 	{
   285 	{
   275 	return iData;
   286 	return iData;
   276 	}
   287 	}
   277 
   288 
   278 inline void CSISString::AddPackageEntry(std::wostream& aStream, bool aVerbose) const
   289 inline void CSISString::AddPackageEntry(std::wostream& aStream, bool aVerbose, bool aCompatible) const
   279 	{
   290 	{
   280 	(void)aVerbose;
   291 	(void)aVerbose;
       
   292 	(void)aCompatible;
   281 	aStream << iData;
   293 	aStream << iData;
   282 	}
   294 	}
   283 
   295 
       
   296 inline void CSISString::AddIbyEntry(std::wostream& aStream, bool aVerbose, bool aCompatible) const
       
   297 	{
       
   298 	(void)aVerbose;
       
   299 	(void)aCompatible;
       
   300 	if(iData.length()>0)
       
   301 		aStream << iData;
       
   302 	}
       
   303 
   284 #endif // __SISSTRING_H__
   304 #endif // __SISSTRING_H__
   285 
   305