File: SmilTimeCodeTest.cpp

package info (click to toggle)
mffm-timecode 1.6-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 1,288 kB
  • ctags: 280
  • sloc: cpp: 1,282; makefile: 94
file content (35 lines) | stat: -rw-r--r-- 1,100 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
  mffm Time Code
  Time Code for multimedia systems

  Copyright (C) 2000-2005 Matt R. Flax <flatmax@ieee.org>
  
  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 2.1 of the License, or (at your option) any later version.
  
  This library 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
  Lesser General Public License for more details.
  
  You have received a copy of the GNU Lesser General Public License
  along with this library.
*/

#include <iostream>
using namespace std;
#include "SmilTimeCode.H"

int main(int argc, char *argv[]){
  
  if (argc<4){
    cout<<"Useage:\n"<<argv[0]<<" time_code_string_beg time_code_string_current time_code_string_end"<<endl;
    exit(-1);
  }
  
  SmilTimeCode temp(argv[1], argv[2], argv[3]);
  std::cout<<temp<<endl;
  return 0;
}