c0e70035f7996e6585f92428d02a340456879807
2 Copyright (c) Grame 2010
4 This library is free software; you can redistribute it and modify it under
5 the terms of the GNU Library General Public License as published by the
6 Free Software Foundation version 2 of the License, or any later version.
8 This library is distributed in the hope that it will be useful, but
9 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License
13 You should have received a copy of the GNU Library General Public License
14 along with this library; if not, write to the Free Software
15 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 Grame Research Laboratory, 9, rue du Garet 69001 Lyon - France
22 #include "OSCFError.h"
28 OSCFError OSCFErr
; // static OSC error output stream
29 OSCFErrEnd OSCFEndl
; // static OSC error output stream end
31 OSCFError
& operator << (OSCFError
& err
, const Message
* arg
)
33 arg
->print (std::cerr
);
35 if (!err
.oscpending
) {
37 err
.oscpending
= true;
39 oscerr
<< arg
->address().c_str();
40 arg
->printArgs(oscerr
);