~ubuntu-branches/ubuntu/natty/ecasound2.2/natty

« back to all changes in this revision

Viewing changes to libecasoundc/eca-control-interface.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Junichi Uekawa
  • Date: 2009-05-06 15:18:46 UTC
  • mfrom: (5.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090506151846-dvp8mirqmxwhve66
Tags: 2.6.0-1
* New upstream release
- 08_fix_header_install: remove
- 07_configure_in_maintainer_mode: update
- do not install manpage copies, and just install symlinks for
  ecatools.1
* Build-Depend on texlive-latex-recommended too for ecrm1000 font.
  (closes: #526535)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// ------------------------------------------------------------------------
2
2
// eca-control-interface.cpp: C++ implementation of the Ecasound
3
3
//                            Control Interface
4
 
// Copyright (C) 2000,2002 Kai Vehmanen
 
4
// Copyright (C) 2000,2002,2009 Kai Vehmanen
 
5
//
 
6
// Attributes:
 
7
//     eca-style-version: 3 (see Ecasound Programmer's Guide)
5
8
//
6
9
// This library is free software; you can redistribute it and/or
7
10
// modify it under the terms of the GNU Lesser General Public
45
48
}
46
49
 
47
50
/**
 
51
 * Checks whether ECI is ready for use.
 
52
 */
 
53
bool ECA_CONTROL_INTERFACE::ready(void)
 
54
{
 
55
  return (eci_ready_r(eci_repp) != 0);
 
56
}
 
57
 
 
58
/**
48
59
 * Parse string mode command and act accordingly.
49
60
 */
50
61
void ECA_CONTROL_INTERFACE::command(const string& cmd)
67
78
    strlist_rep.push_back(string(next));
68
79
  }
69
80
  
70
 
  return(strlist_rep);
 
81
  return strlist_rep;
71
82
}
72
83
 
73
84
const string& ECA_CONTROL_INTERFACE::last_string(void) const
74
85
{
75
86
  str_rep = string(eci_last_string_r(eci_repp));
76
 
  return(str_rep);
 
87
  return str_rep;
77
88
}
78
89
 
79
90
double ECA_CONTROL_INTERFACE::last_float(void) const
80
91
{
81
 
  return(eci_last_float_r(eci_repp));
 
92
  return eci_last_float_r(eci_repp);
82
93
}
83
94
 
84
95
int ECA_CONTROL_INTERFACE::last_integer(void) const
85
96
{
86
 
  return(eci_last_integer_r(eci_repp));
 
97
  return eci_last_integer_r(eci_repp);
87
98
}
88
99
 
89
100
long int ECA_CONTROL_INTERFACE::last_long_integer(void) const
90
101
{
91
 
  return(eci_last_long_integer_r(eci_repp));
 
102
  return eci_last_long_integer_r(eci_repp);
92
103
}
93
104
 
94
105
const string& ECA_CONTROL_INTERFACE::last_error(void) const
95
106
{
96
107
  str_rep = string(eci_last_error_r(eci_repp));
97
 
  return(str_rep); 
 
108
  return str_rep;
98
109
}
99
110
 
100
111
const string& ECA_CONTROL_INTERFACE::last_type(void) const
101
112
{
102
113
  str_rep = string(eci_last_type_r(eci_repp));
103
 
  return(str_rep); 
 
114
  return str_rep;
104
115
}
105
116
 
106
117
bool ECA_CONTROL_INTERFACE::error(void) const
107
118
{
108
 
  return((eci_error_r(eci_repp) != 0) ? true : false);
 
119
  return ((eci_error_r(eci_repp) != 0) ? true : false);
109
120
}
110
121
 
111
122
bool ECA_CONTROL_INTERFACE::events_available(void)
112
123
{
113
 
  return(false);
 
124
  return false;
114
125
}
115
126
 
116
127
void ECA_CONTROL_INTERFACE::next_event(void)
120
131
const string& ECA_CONTROL_INTERFACE::current_event(void)
121
132
{
122
133
  str_rep = "";
123
 
  return(str_rep);
 
134
  return str_rep;
124
135
}