Home

Download

Features

Screenshots

Handbook

Browse Source

Authors

SourceForge.net Logo
Hosted by SourceForge.net

OSI Certified


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages   Search  

commongraph.cpp

00001 /***************************************************************************
00002                           commongraph.cpp  -  description
00003                              -------------------
00004     begin                : Sat Oct 19 2002
00005     copyright            : (C) 2002 by Fungmeista
00006     email                : mizunoami44@sourceforge.net
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #include "commongraph.h"
00019 
00020 /*CommonGraph::CommonGraph()
00021 {
00022 
00023 }
00024 
00025 CommonGraph::~CommonGraph()
00026 {
00027 
00028 }
00029 */
00030 
00031 void CommonGraph::load( std::ifstream &fileInput )
00032 {
00033     char key[256];
00034     char value[256];
00035 
00036     while (strcmp(key,"!") != 0 && strcmp(value,"!") != 0)
00037     {
00038         fileInput>>key;
00039         
00040         if ( key[0] == '!' ) break;
00041 
00042         fileInput.ignore(sizeof(char)); //ignore the space after the equals sign
00043         fileInput.get(value,256,'\n');
00044 
00045         load_key(key,value);
00046     }
00047 }
00048