Files
recycled-ni-neutrino/src/sectionsd/sdt.cpp
Jacek Jendrzej cf15f33903 reformat wiith unix2dos & astyle
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1495 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: 7dab3d9e3e
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2011-05-26 (Thu, 26 May 2011)



------------------
This commit was generated by Migit
2011-05-26 20:23:16 +00:00

86 lines
2.4 KiB
C++

//
// $Id: sdt.cpp,v 1.7 2005/11/20 15:11:40 mogway Exp $
//
// Beispiel zur Benutzung der SI class lib (dbox-II-project)
//
// Homepage: http://dbox2.elxsi.de
//
// Copyright (C) 2001 fnbrd (fnbrd@gmx.de)
//
// 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., 675 Mass Ave, Cambridge, MA 02139, USA.
//
// $Log: sdt.cpp,v $
// Revision 1.7 2005/11/20 15:11:40 mogway
//
//
// automatic services update for neutrino. Patch provided by Nirvana
//
// Forum thread: http://forum.tuxbox.org/forum/viewtopic.php?t=39266
//
// Revision 1.6 2003/03/14 04:27:55 obi
// make it compileable with -W -Werror
//
// Revision 1.5 2002/10/16 01:14:06 woglinde
//
//
// yeah its look huge, it is
// mostly beautified the files
// with local and external headers
//
// Revision 1.4 2001/06/11 19:22:54 fnbrd
// Events haben jetzt mehrere Zeiten, fuer den Fall von NVODs (cinedoms)
//
// Revision 1.3 2001/05/19 20:15:08 fnbrd
// Kleine Aenderungen (und epgXML).
//
// Revision 1.2 2001/05/16 15:23:47 fnbrd
// Alles neu macht der Mai.
//
// Revision 1.1 2001/05/14 13:45:32 fnbrd
// Erweitert.
//
//
#include <stdio.h>
#include <time.h>
#include <set>
#include <algorithm>
#include <string>
#include "SIutils.hpp"
#include "SIservices.hpp"
#include "SIevents.hpp"
#include "SIbouquets.hpp"
#include "SIsections.hpp"
int main(int /*argc*/, char** /*argv*/)
{
time_t starttime, endtime;
SIsectionsSDT sdtset;
starttime=time(NULL);
sdtset.readSections();
endtime=time(NULL);
printf("Sections read: %d\n", sdtset.size());
printf("Time needed: %ds\n", (int)difftime(endtime, starttime));
// for_each(sdtset.begin(), sdtset.end(), printSmallSectionHeader());
// for_each(sdtset.begin(), sdtset.end(), printSIsection());
for_each(sdtset.begin(), sdtset.end(), printSIsectionSDT());
return 0;
}