BlinkenArea - GitList
Repositories
Blog
Wiki
JEtherPix
Code
Commits
Branches
Tags
Search
Tree:
3fd7acd
Branches
Tags
master
JEtherPix
org
blinkenarea
JFlexiPix
examples
Msg.java
get rid of generated nested class
Stefan Schuermans
commited
3fd7acd
at 2011-09-11 10:54:20
Msg.java
Blame
History
Raw
/* JFlexiPix - Java implementation of FlexiPix output library * * Copyright 2010-2011 Stefan Schuermans <stefan blinkenarea org> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.blinkenarea.JFlexiPix.examples; import org.blinkenarea.JFlexiPix.*; public class Msg implements MessageIf { /// constructor public Msg() { } /** * @brief message callback * @param[in] type message type * @param[in] txt message text */ public void message(MsgType type, String txt) { if (type == MsgType.Err) System.out.print("error: "); if (type == MsgType.Warn) System.out.print("warning: "); if (type == MsgType.Info) System.out.print("info: "); System.out.print(txt); } }