moss-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Moss-devel] CVS: moss/3Dsia/client/3Dcf/src Cfg.cxx,NONE,1.1


From: Felix Morgner <address@hidden>
Subject: [Moss-devel] CVS: moss/3Dsia/client/3Dcf/src Cfg.cxx,NONE,1.1
Date: Fri, 16 May 2003 13:49:26 -0400

Update of /cvsroot/moss/moss/3Dsia/client/3Dcf/src
In directory subversions:/tmp/cvs-serv25672/src

Added Files:
        Cfg.cxx 
Log Message:
Added class CCfg


--- NEW FILE ---
/***************************************************************************
                              Cfg.cxx
                          -------------------
    begin                : Sun Nov 3 2002
    copyright            : (C) 1993..2000 by Felix Morgner
    email                : address@hidden
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *                                                                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place Suite 330,                                            *
 *   Boston, MA  02111-1307, USA.                                          *
 *                                                                         *
 ***************************************************************************
 *
 * Implementation of the Cfg "CCfg"
 *
 ***************************************************************************/

#include "Cfg.h"


using namespace std;


CCfg::CCfg()
  {
  m_bProbeResult = 1;
  } // CCfg::CCfg()

CCfg::~CCfg()
  {
  } // CCfg::~CCfg()

bool CCfg::ProbeCfg()
  {
  ifstream config("~/.3dcf.cfg");
  if(!config)
    {
    cerr << "Can not open configfile ~/.3dcf.cfg" << endl;
    m_bProbeResult = 1;
    }

  if(m_bProbeResult == 0) exit(-2);
  return m_bProbeResult;
  } // bool CCfg::ProbeCfg()
  
void CCfg::ReadCfg()
  {
  } // void CCfg::ReadCfg()

void CCfg::WriteCfg()
  {
  } // void CCfg::WriteCfg()





reply via email to

[Prev in Thread] Current Thread [Next in Thread]