~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to mpeglib/example/yaf/yafcore/lineStack.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  a class which scans a string and converts it into commandLines
 
3
  Copyright (C) 1998  Martin Vogt
 
4
 
 
5
  This program is free software; you can redistribute it and/or modify
 
6
  it under the terms of the GNU Library General Public License as published by
 
7
  the Free Software Foundation.
 
8
 
 
9
  For more information look at the file COPYRIGHT in this package
 
10
 
 
11
 */
 
12
 
 
13
 
 
14
 
 
15
 
 
16
 
 
17
#ifndef __LINESTACK_H
 
18
#define __LINESTACK_H
 
19
 
 
20
 
 
21
#include "buffer.h"
 
22
 
 
23
#include <iostream.h>
 
24
 
 
25
/* 
 
26
   This class is a hack because I have problems with
 
27
   the io-streams. Why these stupid things cannot buffer
 
28
   a whole line?
 
29
   They behave strange, I hate them.
 
30
*/
 
31
   
 
32
 
 
33
 
 
34
class LineStack {
 
35
 
 
36
 public:
 
37
  LineStack();
 
38
  ~LineStack();
 
39
 
 
40
  void appendBottom(char* buffer);
 
41
  void appendBottom(char* buffer,int buflen);
 
42
  void appendBottom(LineStack* stack);
 
43
  
 
44
  int hasLine();
 
45
  void nextLine(Buffer* nextLine);
 
46
 
 
47
  void print(char* name);
 
48
 private:
 
49
  char* getReturnPos();
 
50
 
 
51
  Buffer* stack;
 
52
};
 
53
 
 
54
 
 
55
#endif
 
56
  
 
57