... | ... |
@@ -2072,3 +2072,3 @@ |
2072 | 2072 |
/// |
2073 |
/// \brief Reader for the |
|
2073 |
/// \brief Reader for the contents of the \ref lgf-format "LGF" file |
|
2074 | 2074 |
/// |
... | ... |
@@ -2078,3 +2078,3 @@ |
2078 | 2078 |
/// should be read from a file, but in general tools (like glemon) |
2079 |
/// the |
|
2079 |
/// the contents of an LGF file should be guessed somehow. This class |
|
2080 | 2080 |
/// reads the graph and stores the appropriate information for |
... | ... |
@@ -2082,7 +2082,7 @@ |
2082 | 2082 |
/// |
2083 |
///\code LgfContent content("graph.lgf"); |
|
2084 |
/// content.run(); |
|
2083 |
///\code LgfContents contents("graph.lgf"); |
|
2084 |
/// contents.run(); |
|
2085 | 2085 |
/// |
2086 | 2086 |
/// // does it contain any node section and arc section |
2087 |
/// if ( |
|
2087 |
/// if (contents.nodeSectionNum() == 0 || contents.arcSectionNum()) { |
|
2088 | 2088 |
/// std::cerr << "Failure, cannot find graph" << std::endl; |
... | ... |
@@ -2091,9 +2091,9 @@ |
2091 | 2091 |
/// std::cout << "The name of the default node section : " |
2092 |
/// << |
|
2092 |
/// << contents.nodeSection(0) << std::endl; |
|
2093 | 2093 |
/// std::cout << "The number of the arc maps : " |
2094 |
/// << |
|
2094 |
/// << contents.arcMaps(0).size() << std::endl; |
|
2095 | 2095 |
/// std::cout << "The name of second arc map : " |
2096 |
/// << |
|
2096 |
/// << contents.arcMaps(0)[1] << std::endl; |
|
2097 | 2097 |
///\endcode |
2098 |
class |
|
2098 |
class LgfContents { |
|
2099 | 2099 |
private: |
... | ... |
@@ -2123,5 +2123,5 @@ |
2123 | 2123 |
/// |
2124 |
/// Construct an \e LGF |
|
2124 |
/// Construct an \e LGF contents reader, which reads from the given |
|
2125 | 2125 |
/// input stream. |
2126 |
|
|
2126 |
LgfContents(std::istream& is) |
|
2127 | 2127 |
: _is(&is), local_is(false) {} |
... | ... |
@@ -2130,5 +2130,5 @@ |
2130 | 2130 |
/// |
2131 |
/// Construct an \e LGF |
|
2131 |
/// Construct an \e LGF contents reader, which reads from the given |
|
2132 | 2132 |
/// file. |
2133 |
|
|
2133 |
LgfContents(const std::string& fn) |
|
2134 | 2134 |
: _is(new std::ifstream(fn.c_str())), local_is(true) {} |
... | ... |
@@ -2137,5 +2137,5 @@ |
2137 | 2137 |
/// |
2138 |
/// Construct an \e LGF |
|
2138 |
/// Construct an \e LGF contents reader, which reads from the given |
|
2139 | 2139 |
/// file. |
2140 |
|
|
2140 |
LgfContents(const char* fn) |
|
2141 | 2141 |
: _is(new std::ifstream(fn)), local_is(true) {} |
... | ... |
@@ -2146,3 +2146,3 @@ |
2146 | 2146 |
/// therefore the copied reader will not be usable more. |
2147 |
|
|
2147 |
LgfContents(LgfContents& other) |
|
2148 | 2148 |
: _is(other._is), local_is(other.local_is) { |
... | ... |
@@ -2165,3 +2165,3 @@ |
2165 | 2165 |
/// \brief Destructor |
2166 |
~ |
|
2166 |
~LgfContents() { |
|
2167 | 2167 |
if (local_is) delete _is; |
... | ... |
@@ -2361,3 +2361,3 @@ |
2361 | 2361 |
|
2362 |
/// \name Execution of the |
|
2362 |
/// \name Execution of the contents reader |
|
2363 | 2363 |
/// @{ |
0 comments (0 inline)