lemon/lemon_writer.h
changeset 2053 7230185f0bd1
parent 1993 2115143eceea
child 2084 59769591eb60
equal deleted inserted replaced
12:0aaf0840b793 13:cba0d41a1e54
   370     typedef std::vector<SectionWriter*> SectionWriters;
   370     typedef std::vector<SectionWriter*> SectionWriters;
   371     SectionWriters writers;
   371     SectionWriters writers;
   372 
   372 
   373   };
   373   };
   374 
   374 
   375   /// \ingroup io_group
   375   /// \ingroup section_io
   376   /// \brief SectionWriter for writing a graph's nodeset.
   376   /// \brief SectionWriter for writing a graph's nodeset.
   377   ///
   377   ///
   378   /// The lemon format can store multiple graph nodesets with several maps.
   378   /// The lemon format can store multiple graph nodesets with several maps.
   379   /// The nodeset section's header line is \c \@nodeset \c nodeset_name, but 
   379   /// The nodeset section's header line is \c \@nodeset \c nodeset_name, but 
   380   /// the \c nodeset_name may be empty.
   380   /// the \c nodeset_name may be empty.
   526     const Graph& graph;   
   526     const Graph& graph;   
   527     std::string name;
   527     std::string name;
   528 
   528 
   529   };
   529   };
   530 
   530 
   531   /// \ingroup io_group
   531   /// \ingroup section_io
   532   /// \brief SectionWriter for writing a graph's edgesets.
   532   /// \brief SectionWriter for writing a graph's edgesets.
   533   ///
   533   ///
   534   /// The lemon format can store multiple graph edgesets with several maps. 
   534   /// The lemon format can store multiple graph edgesets with several maps. 
   535   /// The edgeset section's header line is \c \@edgeset \c edgeset_name, but 
   535   /// The edgeset section's header line is \c \@edgeset \c edgeset_name, but 
   536   /// the \c edgeset_name may be empty.
   536   /// the \c edgeset_name may be empty.
   704     std::string name;
   704     std::string name;
   705 
   705 
   706     std::auto_ptr<_writer_bits::LabelWriterBase<Node> > nodeLabelWriter;
   706     std::auto_ptr<_writer_bits::LabelWriterBase<Node> > nodeLabelWriter;
   707   };
   707   };
   708 
   708 
   709   /// \ingroup io_group
   709   /// \ingroup section_io
   710   /// \brief SectionWriter for writing a undirected edgeset.
   710   /// \brief SectionWriter for writing a undirected edgeset.
   711   ///
   711   ///
   712   /// The lemon format can store multiple undirected edgesets with several 
   712   /// The lemon format can store multiple undirected edgesets with several 
   713   /// maps. The undirected edgeset section's header line is \c \@uedgeset 
   713   /// maps. The undirected edgeset section's header line is \c \@uedgeset 
   714   /// \c uedgeset_name, but the \c uedgeset_name may be empty.
   714   /// \c uedgeset_name, but the \c uedgeset_name may be empty.
   934     std::string name;
   934     std::string name;
   935 
   935 
   936     std::auto_ptr<_writer_bits::LabelWriterBase<Node> > nodeLabelWriter;
   936     std::auto_ptr<_writer_bits::LabelWriterBase<Node> > nodeLabelWriter;
   937   };
   937   };
   938 
   938 
   939   /// \ingroup io_group
   939   /// \ingroup section_io
   940   /// \brief SectionWriter for writing named nodes.
   940   /// \brief SectionWriter for writing named nodes.
   941   ///
   941   ///
   942   /// The nodes section's header line is \c \@nodes \c nodes_name, but the
   942   /// The nodes section's header line is \c \@nodes \c nodes_name, but the
   943   /// \c nodes_name may be empty.
   943   /// \c nodes_name may be empty.
   944   ///
   944   ///
  1016     typedef std::vector<std::pair<std::string, const Node*> > NodeWriters;
  1016     typedef std::vector<std::pair<std::string, const Node*> > NodeWriters;
  1017     NodeWriters writers;
  1017     NodeWriters writers;
  1018     std::auto_ptr<_writer_bits::LabelWriterBase<Node> > labelWriter;
  1018     std::auto_ptr<_writer_bits::LabelWriterBase<Node> > labelWriter;
  1019   };
  1019   };
  1020 
  1020 
  1021   /// \ingroup io_group
  1021   /// \ingroup section_io
  1022   /// \brief SectionWriter for writing named edges.
  1022   /// \brief SectionWriter for writing named edges.
  1023   ///
  1023   ///
  1024   /// The edges section's header line is \c \@edges \c edges_name, but the
  1024   /// The edges section's header line is \c \@edges \c edges_name, but the
  1025   /// \c edges_name may be empty.
  1025   /// \c edges_name may be empty.
  1026   ///
  1026   ///
  1096     EdgeWriters writers;
  1096     EdgeWriters writers;
  1097 
  1097 
  1098     std::auto_ptr<_writer_bits::LabelWriterBase<Edge> > labelWriter;
  1098     std::auto_ptr<_writer_bits::LabelWriterBase<Edge> > labelWriter;
  1099   };
  1099   };
  1100 
  1100 
  1101   /// \ingroup io_group
  1101   /// \ingroup section_io
  1102   /// \brief SectionWriter for writing named undirected edges.
  1102   /// \brief SectionWriter for writing named undirected edges.
  1103   ///
  1103   ///
  1104   /// The undirected edges section's header line is \c \@uedges 
  1104   /// The undirected edges section's header line is \c \@uedges 
  1105   /// \c uedges_name, but the \c uedges_name may be empty.
  1105   /// \c uedges_name, but the \c uedges_name may be empty.
  1106   ///
  1106   ///
  1203     EdgeWriters edgeWriters;
  1203     EdgeWriters edgeWriters;
  1204     std::auto_ptr<_writer_bits::LabelWriterBase<Edge> > edgeLabelWriter;
  1204     std::auto_ptr<_writer_bits::LabelWriterBase<Edge> > edgeLabelWriter;
  1205 
  1205 
  1206   };
  1206   };
  1207 
  1207 
  1208   /// \ingroup io_group
  1208   /// \ingroup section_io
  1209   /// \brief SectionWriter for attributes.
  1209   /// \brief SectionWriter for attributes.
  1210   ///
  1210   ///
  1211   /// The lemon format can store multiple attribute set. Each set has
  1211   /// The lemon format can store multiple attribute set. Each set has
  1212   /// the header line \c \@attributes \c attributes_name, but the 
  1212   /// the header line \c \@attributes \c attributes_name, but the 
  1213   /// attributeset_name may be empty.
  1213   /// attributeset_name may be empty.