/*
 * Copyright (c) 2005-2006 Tom N Harris.
 *
 *     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.
 *
 *     A copy of the GNU General Public License can be found at
 *     http://www.gnu.org/
 *
 * Written by Tom N Harris <telliamed@whoopdedo.org>.
 *
 */

#ifndef SETUP_FILEVERSION_H
#define SETUP_FILEVERSION_H

#include "win32.h"
#include "cString.h"

namespace Setup
{

class FileVersion
{
public:
	FileVersion(String const& fname);
	~FileVersion();

	bool operator== (FileVersion const& other);
	bool operator< (FileVersion const& other);
	bool operator> (FileVersion const& other);

private:
	VS_FIXEDFILEINFO m_info;
	FILETIME m_time;
	BYTE* m_data;
	DWORD m_bufsize;
};

};

#endif
