File: masterCounterTest.C

package info (click to toggle)
mffm-timecode 1.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 928 kB
  • ctags: 265
  • sloc: cpp: 1,145; makefile: 94
file content (39 lines) | stat: -rw-r--r-- 1,214 bytes parent folder | download | duplicates (5)
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
36
37
38
39
/*
  mffm Time Code
  Time Code for multimedia systems

  Copyright (C) 2000, 2001 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 "masterCounter.H"

#define FIELDCOUNT 3

int main(void){
  MasterCounter<field, FIELDCOUNT> masterCnt(0, 99, 60, 75), masterCnt1(0, 10, 10, 10);
  counter count1(0, 678, 1000);
  counter count2(0, 111, 1000);
  counter count3(0, 789, 1000);
  std::cout<<count1<<std::endl;

  std::cout << masterCnt<<std::endl;
  masterCnt=masterCnt1+count1;
  masterCnt=count1;
  std::cout << masterCnt<<std::endl;

  std::cout << masterCnt<<std::endl;

  std::cout << masterCnt<<std::endl;
}