Source

MkvExtract-Gtk / src / core / Common.h

Full commit
/*
===========================================================================

mkvextract-gtk
Copyright (C) 2011 Leyorus <leyorus@gmail.com>

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, see  <http://www.gnu.org/licenses/>.
===========================================================================
*/

#ifndef COMMON_H_
#define COMMON_H_

#include <string>

namespace Core {

	typedef struct track_info_t{
		std::string num;
		std::string type;
		std::string codec;
		std::string language;
		int size;
		track_info_t() {
			num = "0";
			type = "unknown";
			codec = "unknown";
			language = "unknown";
			size = 0;
		}
	}track_info_t;


	std::string toString(int number);
	int toInteger(const std::string &str);

}


#endif /* COMMON_H_ */