root/trunk/freebob/src/streamprocess.cpp

Revision 14, 1.4 kB (checked in by wagi, 19 years ago)

Started new implementation according UML diagrams.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 /* streamprocess.cpp
2  * Copyright (C) 2004 by Daniel Wagner
3  *
4  * This file is part of FreeBob.
5  *
6  * FreeBob is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  * FreeBob is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with FreeBob; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
18  * MA 02111-1307 USA.
19  */
20
21 #include <unistd.h>
22
23 #include "streamprocess.h"
24 #include "debugmodule.h"
25
26 StreamProcess::StreamProcess()
27 {
28 }
29
30 StreamProcess::~StreamProcess()
31 {
32 }
33
34 void
35 StreamProcess::run()
36 {
37     m_pCMHandler = CMHandler::instance();
38     if ( !m_pCMHandler ) {
39         debugError( "Could not get valid CMHandler instance.\n" );
40         return;
41     }
42
43     FBReturnCodes eStatus = m_pCMHandler->initialize();
44     if ( eStatus != eFBRC_Success ) {
45         debugError( "Could not initialize CMHandler.\n" );
46         return;
47     }
48
49     printf( "Waiting: " );
50     for ( int i = 0; i < 10; ++i ) {
51         printf( "." );
52         fflush( stdout );
53         sleep( 1 );
54     }
55     printf( "\n" );
56
57 }
Note: See TracBrowser for help on using the browser.