/// <summary>
        /// Definitions and measures -> 1 file
        /// </summary>
        /// <param name="filename"></param>
        public void WriteIntermediate(ParamInterpreter p)
        {
            Log.WriteLine("write intermediate data...");

            string fileName = p.Value("intermediatefile");

            Log.WriteLine("measure data to " + fileName);
            _measureDetails.items.WriteToFile(fileName);

            fileName = p.Value("intermediatefilevars");
            Log.WriteLine("measure data vars to " + fileName);
            _variables.WriteToFile(fileName);
        }
        /// <summary>
        /// Write intermediate format to file
        /// </summary>
        /// <param name="parameters"></param>
        public void WriteIntermediate(ParamInterpreter parameters)
        {
            Log.WriteLine("Writing intermediate file...");

            // write transaction data
            string fileName = parameters.Value("intermediatefile");

            Log.WriteLine("transaction data: " + fileName);
            _transactionDetails.WriteToFile(fileName);

            // Extra: file with only headers
            _transactionDetails.WriteToFileFieldDefinitions(fileName, "fieldnames", string.Join(TransactionValue.LISTSEPARATOR.ToString(), TransactionValue.fieldnames));

            // Extra: file with all transactionnames
            _transactionDetails.WriteToFileTranactionnames(fileName);

            // write transaction variables
            string varFileName = parameters.Value("intermediatefilevars");

            Log.WriteLine("transaction variable data: " + varFileName);
            _variables.WriteToFile(varFileName);
        }