/*****************************************************************************/
// Copyright 2006-2020 Adobe Systems Incorporated
// All Rights Reserved.
//
// NOTICE:	Adobe permits you to use, modify, and distribute this file in
// accordance with the terms of the Adobe license agreement accompanying it.
/*****************************************************************************/

#ifndef __dng_string_list__
#define __dng_string_list__

/*****************************************************************************/

#include "dng_classes.h"
#include "dng_memory.h"
#include "dng_string.h"
#include "dng_types.h"

/*****************************************************************************/

class dng_string_list
	{
	
	private:
	
		dng_std_vector<dng_string> fList;
	
	public:
	
		dng_string_list ();
		
		~dng_string_list ();
		
		uint32 Count () const
			{
			return (uint32) fList.size ();
			}
			
		dng_string & operator[] (uint32 index)
			{
			return fList [index];
			}
		
		const dng_string & operator[] (uint32 index) const
			{
			return fList [index];
			}
		
		void Allocate (uint32 minSize);
		
		void Insert (uint32 index, 
					 const dng_string &s);
					 
		void Append (const dng_string &s)
			{
			Insert (Count (), s);
			}
			
		bool Contains (const dng_string &s) const;
		
		void Clear ();
		
	};
	
/*****************************************************************************/

#endif
	
/*****************************************************************************/
