/****************************************************************************
**
** $Id: ltemplate.h,v 1.1 2002/04/13 08:22:02 elter Exp $
**
** Copyright (C) 1999 Calderasystems, Inc
** All rights reserved.
**
** This file is part of the Caldera OpenLinux Installer.
** Original Implementation: 1999 by Troll Tech AS
**
** This file may be distributed under the terms of the Q Public License
** as defined by Troll Tech AS of Norway and appearing in the file
** LICENSE included in the packaging of this file.
**
*****************************************************************************/


#ifndef LTEMPLATE_H
#define LTEMPLATE_H

#include <qstring.h>
#include <qfile.h>
#include <qdict.h>


class LTemplate
{
public:

  LTemplate(QString temp);

  void addToken(const char *token, const char *value);
  void write(QString target);

protected:

  QString substitute(QString line);

private:

  QFile       tpl;
  QDict<char> tokens;

};

#endif

