00001 // Filename: cppCommentBlock.h 00002 // Created by: drose (15Aug00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #ifndef CPPCOMMENTBLOCK_H 00020 #define CPPCOMMENTBLOCK_H 00021 00022 #include <dtoolbase.h> 00023 00024 #include "cppFile.h" 00025 00026 #include <list> 00027 00028 /////////////////////////////////////////////////////////////////// 00029 // Class : CPPCommentBlock 00030 // Description : This represents a comment appearing in the source 00031 // code. The CPPPreprocessor collects these, and saves 00032 // the complete list of comments encountered; it also 00033 // stores a list of the comment blocks appearing before 00034 // each declaration. 00035 //////////////////////////////////////////////////////////////////// 00036 class CPPCommentBlock { 00037 public: 00038 CPPFile _file; 00039 int _line_number; 00040 int _col_number; 00041 int _last_line; 00042 bool _c_style; 00043 string _comment; 00044 }; 00045 00046 typedef list<CPPCommentBlock *> CPPComments; 00047 00048 #endif