49 lines
1.4 KiB
C++
49 lines
1.4 KiB
C++
// Filename: chanparse.h
|
|
// Created by: cary (02Feb99)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
|
|
//
|
|
// All use of this software is subject to the terms of the Panda 3d
|
|
// Software license. You should have received a copy of this license
|
|
// along with this source code; you will also find a current copy of
|
|
// the license at http://www.panda3d.org/license.txt .
|
|
//
|
|
// To contact the maintainers of this program write to
|
|
// panda3d@yahoogroups.com .
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef __CHANPARSE_H__
|
|
#define __CHANPARSE_H__
|
|
|
|
#include "pandabase.h"
|
|
|
|
#include <string>
|
|
|
|
class EXPCL_PANDA ChanParseFunctor {
|
|
public:
|
|
INLINE ChanParseFunctor() {};
|
|
virtual ~ChanParseFunctor();
|
|
|
|
virtual void operator()(std::string) = 0;
|
|
};
|
|
|
|
int ChanMatchingParen(std::string);
|
|
void ChanParse(istream&, ChanParseFunctor*);
|
|
|
|
INLINE void ChanEatFrontWhite(std::string&);
|
|
INLINE void ChanCheckScoping(std::string&);
|
|
INLINE void ChanDescope(std::string&);
|
|
INLINE std::string ChanReadNextWord(std::string&);
|
|
INLINE int ChanReadNextInt(std::string&);
|
|
INLINE bool ChanReadNextBool(std::string&);
|
|
INLINE int ChanReadNextIntB(std::string&);
|
|
INLINE float ChanReadNextFloat(std::string&);
|
|
|
|
#include "chanparse.I"
|
|
|
|
#endif /* __CHANPARSE_H__ */
|