secureswitools/swisistools/source/sisxlibrary/sisarray.h
changeset 26 04d4a7bbc3e0
parent 0 ba25891c3a9e
equal deleted inserted replaced
25:98b66e4fb0be 26:04d4a7bbc3e0
    92 	/**
    92 	/**
    93 	 * Adds package entry related to this structure.
    93 	 * Adds package entry related to this structure.
    94 	 * @param aStream stream into which the package details need to be written.
    94 	 * @param aStream stream into which the package details need to be written.
    95 	 * @param aVerbose If this option is set then detail description of pkg
    95 	 * @param aVerbose If this option is set then detail description of pkg
    96 	 * 			will be written into the stream.
    96 	 * 			will be written into the stream.
    97 	 */
    97 	 * @param aCompatible - Flag to notify AddPackageEntry that Dumpsis works in the original,compatible mode
    98 	void AddPackageEntry(std::wostream& aStream, bool aVerbose) const;
    98 	 * or in the new way.
       
    99 	 * 
       
   100 	 */
       
   101 	void AddPackageEntry(std::wostream& aStream, bool aVerbose, bool aCompatible) const;
       
   102 		/**
       
   103 	 * Adds iby file entry related to this structure.
       
   104 	 * @param aStream stream into which the iby file details need to be written.
       
   105 	 * @param aVerbose If this option is set then detail description of iby
       
   106 	 * 			will be written into the stream.
       
   107 	 * @param aCompatible - Flag to notify AddIbyEntry that Dumpsis works in the original,compatible mode
       
   108 	 * or in the new way.
       
   109 	 */
       
   110 	void AddIbyEntry(std::wostream& aStream, bool aVerbose, bool aCompatible) const;
    99 	
   111 	
   100 	/**
   112 	/**
   101 	 * Operator to access content of this array
   113 	 * Operator to access content of this array
   102 	 * @param aIndex index of the item to be retrieved.
   114 	 * @param aIndex index of the item to be retrieved.
   103 	 */
   115 	 */
   331 	{
   343 	{
   332 	return * (CContainer <CElement <T>, CSISFieldRoot::ESISArray>::operator [] (aIndex));
   344 	return * (CContainer <CElement <T>, CSISFieldRoot::ESISArray>::operator [] (aIndex));
   333 	}
   345 	}
   334 
   346 
   335 template <class T, CSISFieldRoot::TFieldType FieldType>
   347 template <class T, CSISFieldRoot::TFieldType FieldType>
   336 		void CSISArray <T, FieldType>::AddPackageEntry(std::wostream& aStream, bool aVerbose) const
   348 		void CSISArray <T, FieldType>::AddPackageEntry(std::wostream& aStream, bool aVerbose, bool aCompatible) const
   337 	{
   349 	{
   338 	for (SisArrayIter(T) iterMemb = SisArrayMem(T).begin (); iterMemb != SisArrayMem(T).end (); iterMemb++)
   350 	for (SisArrayIter(T) iterMemb = SisArrayMem(T).begin (); iterMemb != SisArrayMem(T).end (); iterMemb++)
   339 		{
   351 		{
   340 		(**iterMemb)->AddPackageEntry(aStream, aVerbose);
   352 		(**iterMemb)->AddPackageEntry(aStream, aVerbose, aCompatible);
       
   353 		}
       
   354 	}
       
   355 
       
   356 template <class T, CSISFieldRoot::TFieldType FieldType>
       
   357 		void CSISArray <T, FieldType>::AddIbyEntry(std::wostream& aStream, bool aVerbose, bool aCompatible) const
       
   358 	{
       
   359 	for (SisArrayIter(T) iterMemb = SisArrayMem(T).begin (); iterMemb != SisArrayMem(T).end (); iterMemb++)
       
   360 		{
       
   361 		(**iterMemb)->AddIbyEntry(aStream, aVerbose, aCompatible);
   341 		}
   362 		}
   342 	}
   363 	}
   343 
   364 
   344 #endif // __SISARRAY_H__
   365 #endif // __SISARRAY_H__
   345 
   366