![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
manages atomic file writing, under control of IGESModel : prepare text to be sent then sends it takes into account distinction between successive Sections More...
#include <IGESData_IGESWriter.hxx>
Public Member Functions | |
| IGESData_IGESWriter (const occ::handle< IGESData_IGESModel > &amodel) | |
| Creates an IGESWriter, empty ready to work (see the methods SendModel and Print) | |
| IGESData_IGESWriter () | |
| Default constructor (not used) to satisfy the compiler. | |
| IGESData_IGESWriter (const IGESData_IGESWriter &other) | |
| Constructor by copy (not used) to satisfy the compiler. | |
| Interface_FloatWriter & | FloatWriter () |
| Returns the embedded FloatWriter, which controls sending Reals Use this method to access FloatWriter in order to consult or change its options (MainFormat, FormatForRange,ZeroSuppress), because it is returned as the address of its field. | |
| int & | WriteMode () |
| Returns the write mode, in order to be read and/or changed Write Mode controls the way final print works 0 (D) : Normal IGES, 10 : FNES. | |
| void | SendStartLine (const char *const startline) |
| Sends an additional Starting Line : this is the way used to send comments in an IGES File (at beginning of the file). If the line is more than 72 chars long, it is split into as many lines as required to send it completely. | |
| void | SendModel (const occ::handle< IGESData_Protocol > &protocol) |
| Sends the complete IGESModel (Global Section, Entities as Directory Entries & Parameter Lists, etc...) i.e. fills a list of texts. Once filled, it can be sent by method Print. | |
| void | SectionS () |
| declares sending of S section (only a declaration) error if state is not initial | |
| void | SectionG (const IGESData_GlobalSection &header) |
| prepares sending of header, from a GlobalSection (stores it) error if SectionS was not called just before takes in account special characters (Separator, EndMark) | |
| void | SectionsDP () |
| prepares sending of list of entities, as Sections D (directory list) and P (Parameters lists, one per entity) Entities will be then processed, one after the other error if SectionG has not be called just before | |
| void | SectionT () |
| declares sending of T section (only a declaration) error if does not follow Entities sending | |
| void | DirPart (const occ::handle< IGESData_IGESEntity > &anent) |
| translates directory part of an Entity into a literal DirPart Some infos are computed after sending parameters Error if not in sections DP or Stage not "Dir" | |
| void | OwnParams (const occ::handle< IGESData_IGESEntity > &anent) |
| sends own parameters of the entity, by sending firstly its type, then calling specific method WriteOwnParams Error if not in sections DP or Stage not "Own" | |
| void | Associativities (const occ::handle< IGESData_IGESEntity > &anent) |
| sends associativity list, as complement of parameters list error if not in sections DP or Stage not "Associativity" | |
| void | Properties (const occ::handle< IGESData_IGESEntity > &anent) |
| sends property list, as complement of parameters list error if not in sections DP or Stage not "Property" | |
| void | EndEntity () |
| declares end of sending an entity (ends param list by ';') | |
| void | SendVoid () |
| sends a void parameter, that is null text | |
| void | Send (const int val) |
| sends an Integer parameter | |
| void | SendBoolean (const bool val) |
| sends a Boolean parameter as an Integer value 0(False)/1(True) | |
| void | Send (const double val) |
| sends a Real parameter. Works with FloatWriter | |
| void | Send (const occ::handle< TCollection_HAsciiString > &val) |
| sends a Text parameter under Hollerith form | |
| void | Send (const occ::handle< IGESData_IGESEntity > &val, const bool negative=false) |
| sends a Reference to an Entity (if its Number is N, its pointer is 2*N-1) If <val> is Null, "0" will be sent If <negative> is True, "Pointer" is sent as negative | |
| template<class T > | |
| void | Send (const occ::handle< T > &val, bool negative=false, typename opencascade::std::enable_if< opencascade::std::is_base_of< IGESData_IGESEntity, T >::value >::type *=nullptr) |
| Helper method to avoid ambiguity of calls to above methods Send() for classes derived from IGESData_IGESEntity, for VC++ 10 and 11 compilers. | |
| void | SendString (const occ::handle< TCollection_HAsciiString > &val) |
| sends a parameter under its exact form given as a string | |
| void | Send (const gp_XY &val) |
| Sends a XY, interpreted as a couple of 2 Reals (X & Y) | |
| void | Send (const gp_XYZ &val) |
| Sends a XYZ, interpreted as a couple of 2 Reals (X , Y & Z) | |
| occ::handle< NCollection_HSequence< occ::handle< TCollection_HAsciiString > > > | SectionStrings (const int numsec) const |
| Returns the list of strings for a section given its rank 1 : Start (if not empty) 2 : Global 3 or 4 : Parameters RQ: no string list for Directory section An empty section gives a null handle. | |
| bool | Print (Standard_OStream &S) const |
| Writes result on an output defined as an OStream resolves stored infos at this time; in particular, numbers of lines used to address P-section from D-section and final totals Takes WriteMode into account. | |
manages atomic file writing, under control of IGESModel : prepare text to be sent then sends it takes into account distinction between successive Sections
| IGESData_IGESWriter::IGESData_IGESWriter | ( | const occ::handle< IGESData_IGESModel > & | amodel | ) |
Creates an IGESWriter, empty ready to work (see the methods SendModel and Print)
| IGESData_IGESWriter::IGESData_IGESWriter | ( | ) |
Default constructor (not used) to satisfy the compiler.
| IGESData_IGESWriter::IGESData_IGESWriter | ( | const IGESData_IGESWriter & | other | ) |
Constructor by copy (not used) to satisfy the compiler.
| void IGESData_IGESWriter::Associativities | ( | const occ::handle< IGESData_IGESEntity > & | anent | ) |
sends associativity list, as complement of parameters list error if not in sections DP or Stage not "Associativity"
| void IGESData_IGESWriter::DirPart | ( | const occ::handle< IGESData_IGESEntity > & | anent | ) |
translates directory part of an Entity into a literal DirPart Some infos are computed after sending parameters Error if not in sections DP or Stage not "Dir"
| void IGESData_IGESWriter::EndEntity | ( | ) |
declares end of sending an entity (ends param list by ';')
| Interface_FloatWriter & IGESData_IGESWriter::FloatWriter | ( | ) |
Returns the embedded FloatWriter, which controls sending Reals Use this method to access FloatWriter in order to consult or change its options (MainFormat, FormatForRange,ZeroSuppress), because it is returned as the address of its field.
| void IGESData_IGESWriter::OwnParams | ( | const occ::handle< IGESData_IGESEntity > & | anent | ) |
sends own parameters of the entity, by sending firstly its type, then calling specific method WriteOwnParams Error if not in sections DP or Stage not "Own"
| bool IGESData_IGESWriter::Print | ( | Standard_OStream & | S | ) | const |
Writes result on an output defined as an OStream resolves stored infos at this time; in particular, numbers of lines used to address P-section from D-section and final totals Takes WriteMode into account.
| void IGESData_IGESWriter::Properties | ( | const occ::handle< IGESData_IGESEntity > & | anent | ) |
sends property list, as complement of parameters list error if not in sections DP or Stage not "Property"
| void IGESData_IGESWriter::SectionG | ( | const IGESData_GlobalSection & | header | ) |
prepares sending of header, from a GlobalSection (stores it) error if SectionS was not called just before takes in account special characters (Separator, EndMark)
| void IGESData_IGESWriter::SectionS | ( | ) |
declares sending of S section (only a declaration) error if state is not initial
| void IGESData_IGESWriter::SectionsDP | ( | ) |
prepares sending of list of entities, as Sections D (directory list) and P (Parameters lists, one per entity) Entities will be then processed, one after the other error if SectionG has not be called just before
| occ::handle< NCollection_HSequence< occ::handle< TCollection_HAsciiString > > > IGESData_IGESWriter::SectionStrings | ( | const int | numsec | ) | const |
Returns the list of strings for a section given its rank 1 : Start (if not empty) 2 : Global 3 or 4 : Parameters RQ: no string list for Directory section An empty section gives a null handle.
| void IGESData_IGESWriter::SectionT | ( | ) |
declares sending of T section (only a declaration) error if does not follow Entities sending
Sends a XY, interpreted as a couple of 2 Reals (X & Y)
Sends a XYZ, interpreted as a couple of 2 Reals (X , Y & Z)
| void IGESData_IGESWriter::Send | ( | const occ::handle< IGESData_IGESEntity > & | val, |
| const bool | negative = false ) |
sends a Reference to an Entity (if its Number is N, its pointer is 2*N-1) If <val> is Null, "0" will be sent If <negative> is True, "Pointer" is sent as negative
|
inline |
Helper method to avoid ambiguity of calls to above methods Send() for classes derived from IGESData_IGESEntity, for VC++ 10 and 11 compilers.
| void IGESData_IGESWriter::Send | ( | const occ::handle< TCollection_HAsciiString > & | val | ) |
sends a Text parameter under Hollerith form
sends a Boolean parameter as an Integer value 0(False)/1(True)
| void IGESData_IGESWriter::SendModel | ( | const occ::handle< IGESData_Protocol > & | protocol | ) |
Sends the complete IGESModel (Global Section, Entities as Directory Entries & Parameter Lists, etc...) i.e. fills a list of texts. Once filled, it can be sent by method Print.
Sends an additional Starting Line : this is the way used to send comments in an IGES File (at beginning of the file). If the line is more than 72 chars long, it is split into as many lines as required to send it completely.
| void IGESData_IGESWriter::SendString | ( | const occ::handle< TCollection_HAsciiString > & | val | ) |
sends a parameter under its exact form given as a string
| void IGESData_IGESWriter::SendVoid | ( | ) |
sends a void parameter, that is null text
| int & IGESData_IGESWriter::WriteMode | ( | ) |
Returns the write mode, in order to be read and/or changed Write Mode controls the way final print works 0 (D) : Normal IGES, 10 : FNES.