byteset.h

来自「linux 下 源代码测试系统 用 tar 打开」· C头文件 代码 · 共 58 行

H
58
字号
/* * $File: byteset.h * $Author: Jiakai -- gy_jk@126.com * $Date: Tue Aug 05 21:37:38 2008 *//*Copyright (C) (2008) (Jiakai) <gy_jk@126.com>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; either version 2 of the License, or any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.*/#ifndef HEADER_BYTESET#define HEADER_BYTESET#include <string>class Byteset_i{	struct Detail;	Detail *p;public:	Byteset_i(const char *str);	~Byteset_i();	bool good();	Byteset_i& read(double &x);	Byteset_i& read(unsigned long &x);	Byteset_i& read(bool &x);	Byteset_i& read(std::string &str);};class Byteset_o{	struct Detail;	Detail *p;public:	Byteset_o();	~Byteset_o();	const char *str(); // return NULL if failed to calculate the string.	Byteset_o& write(double x);	Byteset_o& write(unsigned long x);	Byteset_o& write(bool x);	Byteset_o& write(const std::string &str);};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?