mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 03:05:33 +00:00
Enable warning C4100 ("'identifier' : unreferenced formal parameter") and fix warnings.
This commit is contained in:
@@ -25,7 +25,7 @@ OPTION(UNICODE_SUPPORT "Build IfcOpenShell with Unicode support (requires ICU)."
|
|||||||
OPTION(COLLADA_SUPPORT "Build IfcConvert with COLLADA support (requires OpenCOLLADA)." ON)
|
OPTION(COLLADA_SUPPORT "Build IfcConvert with COLLADA support (requires OpenCOLLADA)." ON)
|
||||||
OPTION(ENABLE_BUILD_OPTIMIZATIONS "Enable certain compiler and linker optimizations on RelWithDebInfo and Release builds." OFF)
|
OPTION(ENABLE_BUILD_OPTIMIZATIONS "Enable certain compiler and linker optimizations on RelWithDebInfo and Release builds." OFF)
|
||||||
#TODO OPTION(IFCCONVERT_DOUBLE_PRECISION "IfcConvert: Use double precision floating-point numbers." OFF)
|
#TODO OPTION(IFCCONVERT_DOUBLE_PRECISION "IfcConvert: Use double precision floating-point numbers." OFF)
|
||||||
OPTION(USE_IFC4 "Use IFC 4 instead of IFC 2x3" OFF)
|
OPTION(USE_IFC4 "Use IFC 4 instead of IFC 2x3 (full rebuild recommended when switching this)" OFF)
|
||||||
OPTION(BUILD_IFCPYTHON "Build IfcPython." ON)
|
OPTION(BUILD_IFCPYTHON "Build IfcPython." ON)
|
||||||
OPTION(BUILD_EXAMPLES "Build example applications." ON)
|
OPTION(BUILD_EXAMPLES "Build example applications." ON)
|
||||||
# TODO QtViewer is deprecated ATM as it uses the 0.4 API
|
# TODO QtViewer is deprecated ATM as it uses the 0.4 API
|
||||||
@@ -217,14 +217,15 @@ if(ENABLE_BUILD_OPTIMIZATIONS)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
IF(MSVC)
|
IF(MSVC)
|
||||||
|
# Enforce Unicode for CRT and Win32 API calls
|
||||||
|
ADD_DEFINITIONS(-D_UNICODE -DUNICODE)
|
||||||
# Disable warnings about unsafe C functions; we could use the safe C99 & C11 versions if we have no need for supporting old compilers.
|
# Disable warnings about unsafe C functions; we could use the safe C99 & C11 versions if we have no need for supporting old compilers.
|
||||||
ADD_DEFINITIONS(-D_UNICODE -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS)
|
ADD_DEFINITIONS(-D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS)
|
||||||
ADD_DEFINITIONS(-bigobj) # required for building the big ifcXXX.objs, https://msdn.microsoft.com/en-us/library/ms173499.aspx
|
ADD_DEFINITIONS(-bigobj) # required for building the big ifcXXX.objs, https://msdn.microsoft.com/en-us/library/ms173499.aspx
|
||||||
# Bump up the warning level from the default 3 to 4. Disable warning C4100 ("'identifier' : unreferenced formal parameter")
|
# Bump up the warning level from the default 3 to 4.
|
||||||
# (too much spam)
|
ADD_DEFINITIONS(-W4)
|
||||||
ADD_DEFINITIONS(-W4 -wd4100)
|
IF(MSVC_VERSION GREATER 1800) # > 2013
|
||||||
# and on VS > 2013 C4458 ("declaration of 'indentifier' hides class member") (overeager and false positives), at least for now.
|
# Disable overeager and false positives causing C4458 ("declaration of 'indentifier' hides class member"), at least for now.
|
||||||
IF(MSVC_VERSION GREATER 1800)
|
|
||||||
ADD_DEFINITIONS(-wd4458)
|
ADD_DEFINITIONS(-wd4458)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
# Link against the static VC runtime
|
# Link against the static VC runtime
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ boost::none_t const null = boost::none;
|
|||||||
// The creation of Nurbs-surface for the IfcSite mesh, to be implemented lateron
|
// The creation of Nurbs-surface for the IfcSite mesh, to be implemented lateron
|
||||||
void createGroundShape(TopoDS_Shape& shape);
|
void createGroundShape(TopoDS_Shape& shape);
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main() {
|
||||||
|
|
||||||
// The IfcHierarchyHelper is a subclass of the regular IfcFile that provides several
|
// The IfcHierarchyHelper is a subclass of the regular IfcFile that provides several
|
||||||
// convenience functions for working with geometry in IFC files.
|
// convenience functions for working with geometry in IFC files.
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ public:
|
|||||||
bool ready();
|
bool ready();
|
||||||
void writeHeader();
|
void writeHeader();
|
||||||
void write(const IfcGeom::TriangulationElement<double>* o);
|
void write(const IfcGeom::TriangulationElement<double>* o);
|
||||||
void write(const IfcGeom::BRepElement<double>* o) {}
|
void write(const IfcGeom::BRepElement<double>* /*o*/) {}
|
||||||
void finalize();
|
void finalize();
|
||||||
bool isTesselated() const { return true; }
|
bool isTesselated() const { return true; }
|
||||||
void setUnitNameAndMagnitude(const std::string& name, float magnitude) {
|
void setUnitNameAndMagnitude(const std::string& name, float magnitude) {
|
||||||
|
|||||||
@@ -42,6 +42,8 @@
|
|||||||
#include "../ifcconvert/XmlSerializer.h"
|
#include "../ifcconvert/XmlSerializer.h"
|
||||||
#include "../ifcconvert/SvgSerializer.h"
|
#include "../ifcconvert/SvgSerializer.h"
|
||||||
|
|
||||||
|
#include <IGESControl_Controller.hxx>
|
||||||
|
|
||||||
static std::string DEFAULT_EXTENSION = "obj";
|
static std::string DEFAULT_EXTENSION = "obj";
|
||||||
|
|
||||||
void printVersion() {
|
void printVersion() {
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
#ifndef IGESSERIALIZER_H
|
#ifndef IGESSERIALIZER_H
|
||||||
#define IGESSERIALIZER_H
|
#define IGESSERIALIZER_H
|
||||||
|
|
||||||
#include <IGESControl_Controller.hxx>
|
|
||||||
#include <IGESControl_Writer.hxx>
|
#include <IGESControl_Writer.hxx>
|
||||||
#include <Interface_Static.hxx>
|
#include <Interface_Static.hxx>
|
||||||
|
|
||||||
@@ -43,7 +42,7 @@ public:
|
|||||||
void finalize() {
|
void finalize() {
|
||||||
writer.Write(out_filename.c_str());
|
writer.Write(out_filename.c_str());
|
||||||
}
|
}
|
||||||
void setUnitNameAndMagnitude(const std::string& name, float magnitude) {
|
void setUnitNameAndMagnitude(const std::string& /*name*/, float magnitude) {
|
||||||
const char* symbol = getSymbolForUnitMagnitude(magnitude);
|
const char* symbol = getSymbolForUnitMagnitude(magnitude);
|
||||||
if (symbol) {
|
if (symbol) {
|
||||||
Interface_Static::SetCVal("write.iges.unit", symbol);
|
Interface_Static::SetCVal("write.iges.unit", symbol);
|
||||||
|
|||||||
@@ -37,10 +37,9 @@ public:
|
|||||||
{}
|
{}
|
||||||
virtual ~OpenCascadeBasedSerializer() {}
|
virtual ~OpenCascadeBasedSerializer() {}
|
||||||
void writeHeader() {}
|
void writeHeader() {}
|
||||||
void writeMaterial(const IfcGeom::SurfaceStyle& style) {}
|
|
||||||
bool ready();
|
bool ready();
|
||||||
virtual void writeShape(const TopoDS_Shape& shape) = 0;
|
virtual void writeShape(const TopoDS_Shape& shape) = 0;
|
||||||
void write(const IfcGeom::TriangulationElement<double>* o) {}
|
void write(const IfcGeom::TriangulationElement<double>* /*o*/) {}
|
||||||
void write(const IfcGeom::BRepElement<double>* o);
|
void write(const IfcGeom::BRepElement<double>* o);
|
||||||
bool isTesselated() const { return false; }
|
bool isTesselated() const { return false; }
|
||||||
void setFile(IfcParse::IfcFile*) {}
|
void setFile(IfcParse::IfcFile*) {}
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
#ifndef STEPSERIALIZER_H
|
#ifndef STEPSERIALIZER_H
|
||||||
#define STEPSERIALIZER_H
|
#define STEPSERIALIZER_H
|
||||||
|
|
||||||
#include <STEPControl_Controller.hxx>
|
|
||||||
#include <STEPControl_Writer.hxx>
|
#include <STEPControl_Writer.hxx>
|
||||||
#include <Interface_Static.hxx>
|
#include <Interface_Static.hxx>
|
||||||
|
|
||||||
@@ -49,7 +48,7 @@ public:
|
|||||||
writer.Write(out_filename.c_str());
|
writer.Write(out_filename.c_str());
|
||||||
std::cout.rdbuf(sb);
|
std::cout.rdbuf(sb);
|
||||||
}
|
}
|
||||||
void setUnitNameAndMagnitude(const std::string& name, float magnitude) {
|
void setUnitNameAndMagnitude(const std::string& /*name*/, float magnitude) {
|
||||||
const char* symbol = getSymbolForUnitMagnitude(magnitude);
|
const char* symbol = getSymbolForUnitMagnitude(magnitude);
|
||||||
if (symbol) {
|
if (symbol) {
|
||||||
Interface_Static::SetCVal("write.step.unit", symbol);
|
Interface_Static::SetCVal("write.step.unit", symbol);
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ class SvgSerializer : public GeometrySerializer {
|
|||||||
public:
|
public:
|
||||||
typedef std::pair<std::string, std::vector<util::string_buffer> > path_object;
|
typedef std::pair<std::string, std::vector<util::string_buffer> > path_object;
|
||||||
protected:
|
protected:
|
||||||
const char* getSymbolForUnitMagnitude(float mag);
|
|
||||||
std::ofstream svg_file;
|
std::ofstream svg_file;
|
||||||
double xmin, ymin, xmax, ymax, width, height;
|
double xmin, ymin, xmax, ymax, width, height;
|
||||||
boost::optional<double> section_height;
|
boost::optional<double> section_height;
|
||||||
@@ -62,15 +61,14 @@ public:
|
|||||||
virtual void growBoundingBox(double x, double y) { if (x < xmin) xmin = x; if (x > xmax) xmax = x; if (y < ymin) ymin = y; if (y > ymax) ymax = y; }
|
virtual void growBoundingBox(double x, double y) { if (x < xmin) xmin = x; if (x > xmax) xmax = x; if (y < ymin) ymin = y; if (y > ymax) ymax = y; }
|
||||||
virtual ~SvgSerializer() {}
|
virtual ~SvgSerializer() {}
|
||||||
virtual void writeHeader();
|
virtual void writeHeader();
|
||||||
virtual void writeMaterial(const IfcGeom::SurfaceStyle& style) {}
|
|
||||||
virtual bool ready();
|
virtual bool ready();
|
||||||
virtual void write(const IfcGeom::TriangulationElement<double>* o) {}
|
virtual void write(const IfcGeom::TriangulationElement<double>* /*o*/) {}
|
||||||
virtual void write(const IfcGeom::BRepElement<double>* o);
|
virtual void write(const IfcGeom::BRepElement<double>* o);
|
||||||
virtual void write(path_object& p, const TopoDS_Wire& wire);
|
virtual void write(path_object& p, const TopoDS_Wire& wire);
|
||||||
virtual path_object& start_path(IfcSchema::IfcBuildingStorey* storey, const std::string& id);
|
virtual path_object& start_path(IfcSchema::IfcBuildingStorey* storey, const std::string& id);
|
||||||
virtual bool isTesselated() const { return false; }
|
virtual bool isTesselated() const { return false; }
|
||||||
virtual void finalize();
|
virtual void finalize();
|
||||||
virtual void setUnitNameAndMagnitude(const std::string& name, float magnitude) {}
|
virtual void setUnitNameAndMagnitude(const std::string& /*name*/, float /*magnitude*/) {}
|
||||||
virtual void setFile(IfcParse::IfcFile* f) { file = f; }
|
virtual void setFile(IfcParse::IfcFile* f) { file = f; }
|
||||||
virtual void setBoundingRectangle(double width, double height);
|
virtual void setBoundingRectangle(double width, double height);
|
||||||
virtual void setSectionHeight(double h) { section_height = h; }
|
virtual void setSectionHeight(double h) { section_height = h; }
|
||||||
|
|||||||
@@ -46,10 +46,10 @@ public:
|
|||||||
void writeHeader();
|
void writeHeader();
|
||||||
void writeMaterial(const IfcGeom::Material& style);
|
void writeMaterial(const IfcGeom::Material& style);
|
||||||
void write(const IfcGeom::TriangulationElement<double>* o);
|
void write(const IfcGeom::TriangulationElement<double>* o);
|
||||||
void write(const IfcGeom::BRepElement<double>* o) {}
|
void write(const IfcGeom::BRepElement<double>* /*o*/) {}
|
||||||
void finalize() {}
|
void finalize() {}
|
||||||
bool isTesselated() const { return true; }
|
bool isTesselated() const { return true; }
|
||||||
void setUnitNameAndMagnitude(const std::string& name, float magnitude) {}
|
void setUnitNameAndMagnitude(const std::string& /*name*/, float /*magnitude*/) {}
|
||||||
void setFile(IfcParse::IfcFile*) {}
|
void setFile(IfcParse::IfcFile*) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -156,16 +156,16 @@ public:
|
|||||||
|
|
||||||
class Get : public Command {
|
class Get : public Command {
|
||||||
protected:
|
protected:
|
||||||
void read_content(std::istream& s) {}
|
void read_content(std::istream& /*s*/) {}
|
||||||
void write_content(std::ostream& s) {}
|
void write_content(std::ostream& /*s*/) {}
|
||||||
public:
|
public:
|
||||||
Get() : Command(GET) {};
|
Get() : Command(GET) {};
|
||||||
};
|
};
|
||||||
|
|
||||||
class GetLog : public Command {
|
class GetLog : public Command {
|
||||||
protected:
|
protected:
|
||||||
void read_content(std::istream& s) {}
|
void read_content(std::istream& /*s*/) {}
|
||||||
void write_content(std::ostream& s) {}
|
void write_content(std::ostream& /*s*/) {}
|
||||||
public:
|
public:
|
||||||
GetLog() : Command(GET_LOG) {};
|
GetLog() : Command(GET_LOG) {};
|
||||||
};
|
};
|
||||||
@@ -189,7 +189,7 @@ private:
|
|||||||
const IfcGeom::TriangulationElement<float>* geom;
|
const IfcGeom::TriangulationElement<float>* geom;
|
||||||
bool append_line_data;
|
bool append_line_data;
|
||||||
protected:
|
protected:
|
||||||
void read_content(std::istream& s) {}
|
void read_content(std::istream& /*s*/) {}
|
||||||
void write_content(std::ostream& s) {
|
void write_content(std::ostream& s) {
|
||||||
swrite<int32_t>(s, geom->id());
|
swrite<int32_t>(s, geom->id());
|
||||||
swrite(s, geom->guid());
|
swrite(s, geom->guid());
|
||||||
@@ -268,21 +268,21 @@ public:
|
|||||||
|
|
||||||
class Next : public Command {
|
class Next : public Command {
|
||||||
protected:
|
protected:
|
||||||
void read_content(std::istream& s) {}
|
void read_content(std::istream& /*s*/) {}
|
||||||
void write_content(std::ostream& s) {}
|
void write_content(std::ostream& /*s*/) {}
|
||||||
public:
|
public:
|
||||||
Next() : Command(NEXT) {};
|
Next() : Command(NEXT) {};
|
||||||
};
|
};
|
||||||
|
|
||||||
class Bye : public Command {
|
class Bye : public Command {
|
||||||
protected:
|
protected:
|
||||||
void read_content(std::istream& s) {}
|
void read_content(std::istream& /*s*/) {}
|
||||||
void write_content(std::ostream& s) {}
|
void write_content(std::ostream& /*s*/) {}
|
||||||
public:
|
public:
|
||||||
Bye() : Command(BYE) {};
|
Bye() : Command(BYE) {};
|
||||||
};
|
};
|
||||||
|
|
||||||
int main (int argc, char** argv) {
|
int main () {
|
||||||
// Redirect stdout to this stream, so that involuntary
|
// Redirect stdout to this stream, so that involuntary
|
||||||
// writes to stdout do not interfere with our protocol.
|
// writes to stdout do not interfere with our protocol.
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
|
|||||||
@@ -143,6 +143,8 @@ void IfcSpfStream::ReadBuffer(bool inc) {
|
|||||||
offset += len;
|
offset += len;
|
||||||
fseek(stream, offset, SEEK_SET);
|
fseek(stream, offset, SEEK_SET);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
(void)inc;
|
||||||
#endif
|
#endif
|
||||||
eof = feof(stream) != 0;
|
eof = feof(stream) != 0;
|
||||||
if ( eof ) return;
|
if ( eof ) return;
|
||||||
@@ -731,7 +733,7 @@ TokenArgument::operator std::vector< std::vector<int> >() const { throw IfcExcep
|
|||||||
TokenArgument::operator std::vector< std::vector<double> >() const { throw IfcException("Argument is not a list of list of floats"); }
|
TokenArgument::operator std::vector< std::vector<double> >() const { throw IfcException("Argument is not a list of list of floats"); }
|
||||||
TokenArgument::operator IfcEntityListList::ptr() const { throw IfcException("Argument is not a list of list of entity instances"); }
|
TokenArgument::operator IfcEntityListList::ptr() const { throw IfcException("Argument is not a list of list of entity instances"); }
|
||||||
unsigned int TokenArgument::size() const { return 1; }
|
unsigned int TokenArgument::size() const { return 1; }
|
||||||
Argument* TokenArgument::operator [] (unsigned int i) const { throw IfcException("Argument is not a list of attributes"); }
|
Argument* TokenArgument::operator [] (unsigned int /*i*/) const { throw IfcException("Argument is not a list of attributes"); }
|
||||||
std::string TokenArgument::toString(bool upper) const {
|
std::string TokenArgument::toString(bool upper) const {
|
||||||
if ( upper && TokenFunc::isString(token) ) {
|
if ( upper && TokenFunc::isString(token) ) {
|
||||||
return IfcWrite::IfcCharacterEncoder(TokenFunc::asString(token));
|
return IfcWrite::IfcCharacterEncoder(TokenFunc::asString(token));
|
||||||
@@ -763,7 +765,7 @@ EntityArgument::operator std::vector< std::vector<int> >() const { throw IfcExce
|
|||||||
EntityArgument::operator std::vector< std::vector<double> >() const { throw IfcException("Argument is not a list of list of floats"); }
|
EntityArgument::operator std::vector< std::vector<double> >() const { throw IfcException("Argument is not a list of list of floats"); }
|
||||||
EntityArgument::operator IfcEntityListList::ptr() const { throw IfcException("Argument is not a list of list of entity instances"); }
|
EntityArgument::operator IfcEntityListList::ptr() const { throw IfcException("Argument is not a list of list of entity instances"); }
|
||||||
unsigned int EntityArgument::size() const { return 1; }
|
unsigned int EntityArgument::size() const { return 1; }
|
||||||
Argument* EntityArgument::operator [] (unsigned int i) const { throw IfcException("Argument is not a list of arguments"); }
|
Argument* EntityArgument::operator [] (unsigned int /*i*/) const { throw IfcException("Argument is not a list of arguments"); }
|
||||||
std::string EntityArgument::toString(bool upper) const {
|
std::string EntityArgument::toString(bool upper) const {
|
||||||
return entity->entity->toString(upper);
|
return entity->entity->toString(upper);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ public:
|
|||||||
return (*_list)[i];
|
return (*_list)[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
IfcEntityList::ptr getInverse(IfcSchema::Type::Enum type, int attribute_index) {
|
IfcEntityList::ptr getInverse(IfcSchema::Type::Enum /*type*/, int /*attribute_index*/) {
|
||||||
return IfcEntityList::ptr(new IfcEntityList);
|
return IfcEntityList::ptr(new IfcEntityList);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ public:
|
|||||||
return (IfcSchema::Type::Enum) -1;
|
return (IfcSchema::Type::Enum) -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is(IfcSchema::Type::Enum v) const {
|
bool is(IfcSchema::Type::Enum /*v*/) const {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ namespace IfcUtil {
|
|||||||
unsigned int getArgumentCount() const;
|
unsigned int getArgumentCount() const;
|
||||||
Argument* getArgument(unsigned int i) const;
|
Argument* getArgument(unsigned int i) const;
|
||||||
const char* getArgumentName(unsigned int i) const;
|
const char* getArgumentName(unsigned int i) const;
|
||||||
IfcSchema::Type::Enum getArgumentEntity(unsigned int i) const { return IfcSchema::Type::UNDEFINED; }
|
IfcSchema::Type::Enum getArgumentEntity(unsigned int /*i*/) const { return IfcSchema::Type::UNDEFINED; }
|
||||||
};
|
};
|
||||||
|
|
||||||
bool valid_binary_string(const std::string& s);
|
bool valid_binary_string(const std::string& s);
|
||||||
|
|||||||
+12
-12
@@ -289,21 +289,21 @@ void IfcWritableEntity::setArgument(int i,const std::vector< boost::dynamic_bits
|
|||||||
|
|
||||||
class SizeVisitor : public boost::static_visitor<int> {
|
class SizeVisitor : public boost::static_visitor<int> {
|
||||||
public:
|
public:
|
||||||
int operator()(const boost::none_t& i) const { return -1; }
|
int operator()(const boost::none_t& /*i*/) const { return -1; }
|
||||||
int operator()(const IfcWriteArgument::Derived& i) const { return -1; }
|
int operator()(const IfcWriteArgument::Derived& /*i*/) const { return -1; }
|
||||||
int operator()(const int& i) const { return -1; }
|
int operator()(const int& /*i*/) const { return -1; }
|
||||||
int operator()(const bool& i) const { return -1; }
|
int operator()(const bool& /*i*/) const { return -1; }
|
||||||
int operator()(const double& i) const { return -1; }
|
int operator()(const double& /*i*/) const { return -1; }
|
||||||
int operator()(const std::string& i) const { return -1; }
|
int operator()(const std::string& /*i*/) const { return -1; }
|
||||||
int operator()(const boost::dynamic_bitset<>& i) const { return -1; }
|
int operator()(const boost::dynamic_bitset<>& /*i*/) const { return -1; }
|
||||||
int operator()(const std::vector<int>& i) const { return (int)i.size(); }
|
int operator()(const std::vector<int>& i) const { return (int)i.size(); }
|
||||||
int operator()(const std::vector<double>& i) const { return (int)i.size(); }
|
int operator()(const std::vector<double>& i) const { return (int)i.size(); }
|
||||||
int operator()(const std::vector< std::vector<int> >& i) const { return (int)i.size(); }
|
int operator()(const std::vector< std::vector<int> >& i) const { return (int)i.size(); }
|
||||||
int operator()(const std::vector< std::vector<double> >& i) const { return (int)i.size(); }
|
int operator()(const std::vector< std::vector<double> >& i) const { return (int)i.size(); }
|
||||||
int operator()(const std::vector<std::string>& i) const { return (int)i.size(); }
|
int operator()(const std::vector<std::string>& i) const { return (int)i.size(); }
|
||||||
int operator()(const std::vector< boost::dynamic_bitset<> >& i) const { return (int)i.size(); }
|
int operator()(const std::vector< boost::dynamic_bitset<> >& i) const { return (int)i.size(); }
|
||||||
int operator()(const IfcWriteArgument::EnumerationReference& i) const { return -1; }
|
int operator()(const IfcWriteArgument::EnumerationReference& /*i*/) const { return -1; }
|
||||||
int operator()(const IfcUtil::IfcBaseClass* const& i) const { return -1; }
|
int operator()(const IfcUtil::IfcBaseClass* const& /*i*/) const { return -1; }
|
||||||
int operator()(const IfcEntityList::ptr& i) const { return i->size(); }
|
int operator()(const IfcEntityList::ptr& i) const { return i->size(); }
|
||||||
int operator()(const IfcEntityListList::ptr& i) const { return i->size(); }
|
int operator()(const IfcEntityListList::ptr& i) const { return i->size(); }
|
||||||
};
|
};
|
||||||
@@ -371,8 +371,8 @@ private:
|
|||||||
public:
|
public:
|
||||||
StringBuilderVisitor(std::ostringstream& stream, bool upper = false)
|
StringBuilderVisitor(std::ostringstream& stream, bool upper = false)
|
||||||
: data(stream), upper(upper) {}
|
: data(stream), upper(upper) {}
|
||||||
void operator()(const boost::none_t& i) { data << "$"; }
|
void operator()(const boost::none_t& /*i*/) { data << "$"; }
|
||||||
void operator()(const IfcWriteArgument::Derived& i) { data << "*"; }
|
void operator()(const IfcWriteArgument::Derived& /*i*/) { data << "*"; }
|
||||||
void operator()(const int& i) { data << i; }
|
void operator()(const int& i) { data << i; }
|
||||||
void operator()(const bool& i) { data << (i ? ".T." : ".F."); }
|
void operator()(const bool& i) { data << (i ? ".T." : ".F."); }
|
||||||
void operator()(const double& i) { data << format_double(i); }
|
void operator()(const double& i) { data << format_double(i); }
|
||||||
@@ -502,7 +502,7 @@ IfcWriteArgument::operator std::vector< std::vector<int> >() const { return as<s
|
|||||||
IfcWriteArgument::operator std::vector< std::vector<double> >() const { return as<std::vector< std::vector<double> > >(); }
|
IfcWriteArgument::operator std::vector< std::vector<double> >() const { return as<std::vector< std::vector<double> > >(); }
|
||||||
IfcWriteArgument::operator IfcEntityListList::ptr() const { throw; }
|
IfcWriteArgument::operator IfcEntityListList::ptr() const { throw; }
|
||||||
bool IfcWriteArgument::isNull() const { return type() == IfcUtil::Argument_NULL; }
|
bool IfcWriteArgument::isNull() const { return type() == IfcUtil::Argument_NULL; }
|
||||||
Argument* IfcWriteArgument::operator [] (unsigned int i) const { throw IfcParse::IfcException("Invalid cast"); }
|
Argument* IfcWriteArgument::operator [] (unsigned int /*i*/) const { throw IfcParse::IfcException("Invalid cast"); }
|
||||||
std::string IfcWriteArgument::toString(bool upper) const {
|
std::string IfcWriteArgument::toString(bool upper) const {
|
||||||
std::ostringstream str;
|
std::ostringstream str;
|
||||||
str.imbue(std::locale::classic());
|
str.imbue(std::locale::classic());
|
||||||
|
|||||||
Reference in New Issue
Block a user