// This file is part of AspectC++.
// Copyright (C) 1999-2016  The AspectC++ developer team.
//                                                                
// This program is free software;  you can redistribute it and/or 
// modify it under the terms of the GNU General Public License as 
// published by the Free Software Foundation; either version 2 of 
// the License, or (at your option) any later version.            
//                                                                
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
// GNU General Public License for more details.                   
//                                                                
// You should have received a copy of the GNU General Public      
// License along with this program; if not, write to the Free     
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
// MA  02111-1307  USA                                            

#ifndef ACBASE_ProjectFile_H
#define ACBASE_ProjectFile_H

/** \file
 * Project file information. */

#include <map>
#include <string>

namespace ACBase {

/** \class ProjectFile ProjectFile.h Puma/ProjectFile.h
 * Project file abstraction used to store all filenames relevant
 * for a specific file.
 * \ingroup common */
class ProjectFile {
  std::string m_name;
  std::string m_destPath;

public:
  /** Construct a project file from the given filename.
   * \param filename The filename. */
  ProjectFile(const std::string &filename)
      : m_name(filename) {
  }
  /** Construct a project file from the given filename
   * and destination path.
   * \param filename The filename.
   * \param destPath The destination path. */
  ProjectFile(const std::string &filename, const std::string &destPath)
      : m_name(filename), m_destPath(destPath) {
  }
  /** Set the project file destination path.
   * \param destPath The destination path. */
  void dest(const std::string &destPath) {
    m_destPath = destPath;
  }
  /** Get the project file's name.
   * \return The filename information. */
  std::string name() const {
    return m_name;
  }
  /** Get the project file's destination path.
   * \return The destination path information. */
  std::string dest() const {
    return m_destPath;
  }
};

} // namespace ACBase

#endif // ACBASE_ProjectFile_H
