libgexf  0.1.3
Public Types | Public Member Functions | List of all members
libgexf::FileWriter Class Reference

Write a GEXF 1.1 file (Gephi 0.7+). More...

#include <filewriter.h>

Public Types

enum  ElemType { NODE, EDGE }
 Possible type of element.
 

Public Member Functions

 FileWriter (const std::string &filepath, GEXF *gexf)
 Constructor with init. More...
 
 FileWriter (const FileWriter &orig)
 Copy constructor.
 
libgexf::GEXF getGEXFCopy ()
 Get a duplicated instance of the internal GEXF data. More...
 
void init (const std::string &filepath, libgexf::GEXF *gexf)
 Initialize the file writer. More...
 
void write ()
 Write the file.
 

Detailed Description

Write a GEXF 1.1 file (Gephi 0.7+).

Constructor & Destructor Documentation

◆ FileWriter()

libgexf::FileWriter::FileWriter ( const std::string &  filepath,
GEXF gexf 
)

Constructor with init.

Parameters
filepath: Path to the written file
gexf: reference to a GEXF object

Member Function Documentation

◆ getGEXFCopy()

GEXF libgexf::FileWriter::getGEXFCopy ( )

Get a duplicated instance of the internal GEXF data.

Returns
GEXF instance

◆ init()

void libgexf::FileWriter::init ( const std::string &  filepath,
libgexf::GEXF gexf 
)

Initialize the file writer.

Parameters
filepath: Path to the GEXF file
gexf: reference to a GEXF object

The documentation for this class was generated from the following files: