fix: iges_import — make parse_int/parse_real/split_params public static
This commit is contained in:
@@ -68,6 +68,12 @@ public:
|
|||||||
const std::string& global_section() const { return global_section_; }
|
const std::string& global_section() const { return global_section_; }
|
||||||
const std::string& start_section() const { return start_section_; }
|
const std::string& start_section() const { return start_section_; }
|
||||||
|
|
||||||
|
static std::string strip(const std::string& s);
|
||||||
|
static double parse_real(const std::string& s);
|
||||||
|
static int parse_int(const std::string& s);
|
||||||
|
static std::vector<std::string> split_params(const std::string& s);
|
||||||
|
static std::string field(const std::string& line, int col); // 1-indexed, 8-char field
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct CardRecord {
|
struct CardRecord {
|
||||||
char section = '\0';
|
char section = '\0';
|
||||||
@@ -89,12 +95,6 @@ private:
|
|||||||
bool parse_directory_entries(const std::vector<CardRecord>& records);
|
bool parse_directory_entries(const std::vector<CardRecord>& records);
|
||||||
bool parse_parameter_data(const std::vector<CardRecord>& records);
|
bool parse_parameter_data(const std::vector<CardRecord>& records);
|
||||||
|
|
||||||
static std::string strip(const std::string& s);
|
|
||||||
static double parse_real(const std::string& s);
|
|
||||||
static int parse_int(const std::string& s);
|
|
||||||
static std::vector<std::string> split_params(const std::string& s);
|
|
||||||
static std::string field(const std::string& line, int col); // 1-indexed, 8-char field
|
|
||||||
};
|
|
||||||
|
|
||||||
IgesParser::IgesParser(const std::string& data) : data_(data) {}
|
IgesParser::IgesParser(const std::string& data) : data_(data) {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user