/*
  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;
}
