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

« back to all changes in this revision

Viewing changes to mpeglib/example/yaf/yafcore/commandLine.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
  An abstraction of a Command-Line
 
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 __BASICMESSAGE_H
 
18
#define __BASICMESSAGE_H
 
19
 
 
20
 
 
21
#include "buffer.h"
 
22
#include <iostream.h>
 
23
 
 
24
 
 
25
 
 
26
 
 
27
struct BasicMessageStruct {
 
28
 
 
29
  Buffer* identifier;
 
30
  Buffer* value;
 
31
 
 
32
};
 
33
    
 
34
typedef struct BasicMessageStruct tBasicMessage;
 
35
 
 
36
 
 
37
class CommandLine {
 
38
  
 
39
 
 
40
  int commandCount;
 
41
  tBasicMessage command[40];
 
42
 
 
43
 public:
 
44
 
 
45
  CommandLine();
 
46
  ~CommandLine();
 
47
 
 
48
  int getCommandCount();
 
49
  void setCommandCount(int commandCount);
 
50
 
 
51
  char* getIdentifier(int i);
 
52
  char* getValue(int i);
 
53
 
 
54
  void setIdentifier(int i,char* identifier);
 
55
  void setValue(int i,char* value);
 
56
 
 
57
  void printCommand();
 
58
  void clear();
 
59
};
 
60
 
 
61
#endif
 
62
 
 
63