mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-04 20:28:29 +02:00
our current experimental Neutrino branch
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@27 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: bc5bd4154e
Author: mrcolor <mrcolor@e54a6e83-5905-42d5-8d5c-058d10e6a962>
Date: 2009-12-08 (Tue, 08 Dec 2009)
------------------
This commit was generated by Migit
This commit is contained in:
85
src/sectionsd/sdt.cpp
Normal file
85
src/sectionsd/sdt.cpp
Normal file
@@ -0,0 +1,85 @@
|
||||
//
|
||||
// $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;
|
||||
}
|
Reference in New Issue
Block a user