Diana  0.8.3
Convertor.hpp
00001 /* -----------------------------------------------------------------------------
00002  *  Diana process modelling, simulation and analysis software
00003  *  Copyright (c) 2005, Michael Krasnyk
00004  *  All rights reserved.
00005  *
00006  *  This file is a part of Diana process modelling, simulation and analysis software
00007  *
00008  *  Diana is free software; you can redistribute it and/or modify it
00009  *  under the terms of the GNU General Public License as published
00010  *  by the Free Software Foundation (see accompanying file LICENSE)
00011  * -----------------------------------------------------------------------------
00012  *  $Id$
00013  * -----------------------------------------------------------------------------
00014  *  Description:
00015  */
00016 
00017  
00018 #ifndef __DRAWGRAPH_H
00019 #define __DRAWGRAPH_H
00020 
00021 #include "File.hpp"
00022 #include "CSRGraph.hpp"
00023 
00029 class CConvertor
00030 {
00031 private:
00032    void CSRToAdjancyVector( CSRGraph* _CSRGraph, 
00033       std::vector<std::vector<EdgeStruct > >* AdjancyVector );
00034    
00035 public:
00036    
00039    void FromConnectionsToCSR( const CapeString& _szInputConnectionsFileName, CSRGraph* _OutGraph )
00040       throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument);
00041 
00042 
00044    void ConvertCSRToDotFormat( CSRGraph* _Graph, const CapeString& _OutputFileName ); 
00045 
00046 
00049    void ConvertCSRToDivideDotFormat( CSRGraph* _CSRGraph, const CapeString& _OutputFileName,
00050       CapeArrayLong* DivideLayout );    
00051 };
00052 
00053 #endif
00054