00001 /* 00002 * Stanford Whole-Body Control Framework http://stanford-wbc.sourceforge.net/ 00003 * 00004 * Copyright (C) 2010 The Board of Trustees of The Leland Stanford Junior University. All rights reserved. 00005 * 00006 * This program is free software: you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public License 00008 * as published by the Free Software Foundation, either version 3 of 00009 * the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, but 00012 * WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this program. If not, see 00018 * <http://www.gnu.org/licenses/> 00019 */ 00020 00026 #ifndef JSPACE_STATUS_HPP 00027 #define JSPACE_STATUS_HPP 00028 00029 #include <string> 00030 00031 namespace jspace { 00032 00033 class Status 00034 { 00035 public: 00036 00038 inline Status(): ok(true), errstr("") {} 00039 Status(bool ok, std::string const & errstr); 00040 00041 inline operator bool () const { return ok; } 00042 00043 bool ok; 00044 std::string errstr; 00045 }; 00046 00047 } 00048 00049 #endif // JSPACE_STATUS_HPP