\label{doc_usecases_core_UC_keyset_insert_md_md_doc_usecases_core_UC_keyset_insert}%
\Hypertarget{doc_usecases_core_UC_keyset_insert_md_md_doc_usecases_core_UC_keyset_insert}%
 \hypertarget{doc_usecases_core_UC_keyset_insert_md_autotoc_md4828}{}\doxysection{Summary}\label{doc_usecases_core_UC_keyset_insert_md_autotoc_md4828}

\begin{DoxyItemize}
\item {\bfseries{Scope\+:}} {\ttfamily libelektra-\/core}
\item {\bfseries{Level\+:}} Developer Goal
\item {\bfseries{Actors\+:}} Core, Caller
\item {\bfseries{Brief\+:}} Caller inserts new {\ttfamily Key} into existing {\ttfamily Key\+Set}
\end{DoxyItemize}\hypertarget{doc_usecases_core_UC_keyset_insert_md_autotoc_md4829}{}\doxysection{Scenarios}\label{doc_usecases_core_UC_keyset_insert_md_autotoc_md4829}

\begin{DoxyItemize}
\item {\bfseries{Precondition\+:}}
\begin{DoxyItemize}
\item \mbox{\hyperlink{doc_usecases_core_UC_keyset_create_md}{\`{}\+Key\+Set\`{} has been created}}
\end{DoxyItemize}
\item {\bfseries{Main success scenario\+:}}
\begin{DoxyItemize}
\item Caller requests to insert a new {\ttfamily Key} with non-\/cascading name into {\ttfamily Key\+Set}
\item If necessary Core resizes {\ttfamily Key\+Set}
\item If necessary Core removes existing {\ttfamily Key} with same name
\item Core adds {\ttfamily Key} to {\ttfamily Key\+Set}
\end{DoxyItemize}
\item {\bfseries{Alternative scenario\+:}}
\begin{DoxyItemize}
\item Caller requests to insert all {\ttfamily Key}s contained in one {\ttfamily Key\+Set} A into another {\ttfamily Key\+Set} B
\item If necessary Core resizes B
\item If necessary Core removes all existing {\ttfamily Key}s contained in A and B from B
\item Core copies all {\ttfamily Key}s from A to B
\end{DoxyItemize}
\item {\bfseries{Error scenario\+:}} -\/
\item {\bfseries{Postcondition\+:}}
\begin{DoxyItemize}
\item The new {\ttfamily Key}(s) provided by Caller MUST be part of {\ttfamily Key\+Set} exactly once. It MUST be possible to find exactly that/those {\ttfamily Key}(s) via a lookup.
\end{DoxyItemize}
\item {\bfseries{Non-\/functional Constraints\+:}} -\/ 
\end{DoxyItemize}