moostring.h
来自「学习 open inventor 的例子」· C头文件 代码 · 共 60 行
H
60 行
/**************************************************************************\ * * This file is part of a set of example programs for the Coin library. * Copyright (C) 2000-2003 by Systems in Motion. All rights reserved. * * <URL:http://www.coin3d.org> * * This sourcecode can be redistributed and/or modified under the * terms of the GNU General Public License version 2 as published by * the Free Software Foundation. See the file COPYING at the root * directory of the distribution for more details. * * As a special exception, all sourcecode of the demo examples can be * used for any purpose for licensees of the Coin Professional * Edition License, without the restrictions of the GNU GPL. See our * web pages for information about how to acquire a Professional Edition * License. * * Systems in Motion, <URL:http://www.sim.no>, <mailto:support@sim.no> *\**************************************************************************/// File: MooString.h#ifndef MOO_STRING_H#define MOO_STRING_H#include "MooList.cpp"class MooString{ friend class MooOut;public: MooString( void ); // constructor MooString( const char * string ); // constructor ~MooString( void ); // destructor //void append( const char * string ); // concatinate string //void append( MooString & string ); // concatinate to string void append( char c ); // append char to string void remove( void ); // remove last char void clear( void ); // delete char list unsigned int length( void ); // get length of current list void get( char * dest, unsigned int length ); // get null terminated string char getC( unsigned int index ); // get char at index bool equals( MooString & string ); bool equals( const char * string );protected: MooList <char> charList;private:};#endif // !MOO_STRING_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?