BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
Public Member Functions | List of all members
bellshire::MatML_Base_GUI Class Reference
Inheritance diagram for bellshire::MatML_Base_GUI:
bellshire::Utilities bellshire::Abbreviation_GUI_Base bellshire::Associate_GUI_Base bellshire::AssociationDetails_GUI_Base bellshire::AuthorityDetails_GUI_Base bellshire::BulkDetails_GUI_Base bellshire::Characterization_GUI_Base bellshire::ChemicalComposition_GUI_Base bellshire::ChemicalElementSymbol_GUI_Base bellshire::Class_GUI_Base bellshire::ComponentDetails_GUI_Base bellshire::Compound_GUI_Base bellshire::Concentration_GUI_Base bellshire::CurrencyCode_GUI_Base bellshire::Data1_GUI_Base bellshire::DataSourceDetails_GUI_Base bellshire::Data_GUI_Base bellshire::Definition_GUI_Base bellshire::DimensionalDetails_GUI_Base bellshire::Dimensions_GUI_Base bellshire::Element_GUI_Base bellshire::Form_GUI_Base bellshire::Formula_GUI_Base bellshire::Geometry_GUI_Base bellshire::GlossaryTerm_GUI_Base bellshire::Glossary_GUI_Base bellshire::Graph_GUI_Base bellshire::Graphs_GUI_Base bellshire::Intro_GUI_Base bellshire::MatML_Doc_GUI_Base bellshire::Material_GUI_Base bellshire::MeasurementTechniqueDetails_GUI_Base bellshire::Metadata_GUI_Base bellshire::Name_GUI_Base bellshire::Notes_GUI_Base bellshire::Orientation_GUI_Base bellshire::ParameterDetails_GUI_Base bellshire::ParameterValue_GUI_Base bellshire::ParentMaterial_GUI_Base bellshire::ParentSubClass_GUI_Base bellshire::PhaseComposition_GUI_Base bellshire::ProcessingDetails_GUI_Base bellshire::PropertyData_GUI_Base bellshire::PropertyDetails_GUI_Base bellshire::Qualifier_GUI_Base bellshire::Relationship_GUI_Base bellshire::Result_GUI_Base bellshire::Scale_GUI_Base bellshire::Shape_GUI_Base bellshire::SourceDetails_GUI_Base bellshire::Source_GUI_Base bellshire::Specification_GUI_Base bellshire::SpecimenDetails_GUI_Base bellshire::Subclass1_GUI_Base bellshire::Subclass_GUI_Base bellshire::Symbol_GUI_Base bellshire::Synonym_GUI_Base bellshire::TestConditionDetails_GUI_Base bellshire::Uncertainty_GUI_Base bellshire::Unit_GUI_Base bellshire::Unitless_GUI_Base bellshire::Units_GUI_Base bellshire::Value_GUI_Base

Public Member Functions

bool Warning (::std::string msg)
 
template<class MatML_Class >
MatML_Class * GetSelMatML (TreeCtrlSorted *MatMLTreeCtrl)
 
template<class MatML_Class >
MatML_Class * GetSelParentMatML (TreeCtrlSorted *MatMLTreeCtrl)
 
template<typename MatML_ParentClass , typename GUI_ParentClass >
void SetupSel (TreeCtrlSorted *MatMLTreeCtrl)
 
template<typename MatML_ParentClass , typename GUI_ParentClass >
void SetupStrongTypeSel (TreeCtrlSorted *MatMLTreeCtrl)
 
template<typename MatML_ParentClass , typename GUI_ParentClass >
void SetupSelParent (TreeCtrlSorted *MatMLTreeCtrl)
 
template<class InputIterator , class T >
InputIterator find (InputIterator first, InputIterator last, const T &val)
 
template<typename MatML_Class , typename MatML_ContClass >
void InsertChild (MatML_ContClass &MatML_Cont)
 Does Nothing. Child are required in the MatML structure and are inserted automatically through the Default classes. More...
 
template<typename MatML_Class , typename MatML_ContClass >
void InsertContChild (MatML_ContClass &MatML_Cont)
 Inserts the MatML Data into the MatML container element More...
 
template<typename MatML_Class , typename MatML_ContClass >
void InsertSeqContChild (MatML_ContClass &MatML_Cont)
 Inserts the MatML Data into the MatML sequence container element More...
 
template<typename MatML_ContClass >
void DeleteChild (MatML_ContClass &MatML)
 Does Nothing. Child are REQUIRED in the MatML structure and are inserted automatically through the Default classes. More...
 
template<typename MatML_ContClass >
void DeleteContChild (MatML_ContClass &MatML_Cont)
 
template<typename MatML_Class , typename MatML_ContClass >
void DeleteSeqContChild (MatML_Class *MatML, MatML_ContClass &MatML_Cont)
 
template<typename MatML_Class , typename MatML_ContClass >
void PasteChild (MatML_Class *MatML, MatML_ContClass &MatML_Cont)
 
template<typename MatML_Class , typename MatML_ContClass >
void PasteContChild (MatML_Class *MatML, MatML_ContClass &MatML_Cont)
 
template<typename MatML_Class , typename MatML_ContClass >
void PasteSeqContChild (MatML_Class *MatML, MatML_ContClass &MatML_Cont)
 
template<class MatML_Class >
void SwapHavingId (MatML_Class *matml0, MatML_Class *matml1)
 Swap function with MatML Classes that have required Id. This has the added complication that the id's can not be duplicated during the swap. More...
 
template<class MatML_Class >
void SwapHavingOptionalId (MatML_Class *matml0, MatML_Class *matml1)
 Swap function with MatML Classes that have Optional Id. This has the added complication that the id's can not be duplicated during the swap. More...
 
template<class MatML_Class , class MatML_ContClass >
std::pair< MatML_Class *, MatML_Class * > MatMLFindAndBumpDown (MatML_Class *matml, MatML_ContClass &cont)
 
template<class MatML_Class , class MatML_ContClass >
std::pair< MatML_Class *, MatML_Class * > MatMLFindAndBumpDownStrongtype (MatML_Class *matml, MatML_ContClass &cont)
 
template<class MatML_Class , class MatML_ContClass >
std::pair< MatML_Class *, MatML_Class * > MatMLFindAndBumpDownHavingId (MatML_Class *matml, MatML_ContClass &cont)
 Similar to MatMLFindAndBumpDown with the added complication that the Required Id's cannot be duplicated during the swap. More...
 
template<class MatML_Class , class MatML_ContClass >
std::pair< MatML_Class *, MatML_Class * > MatMLFindAndBumpDownHavingOptionalId (MatML_Class *matml, MatML_ContClass &cont)
 Similar to MatMLFindAndBumpDown with the added complication that the optional Id's cannot be duplicated during the swap. More...
 
template<class Child_GUI , class MatML >
void MatMLTreeCtrlBumpDown (TreeCtrlSorted *&treectrl, wxTreeItemId &itemParentId, wxTreeItemId &itemId, MatML *first, wxTreeItemId &nextitemId, MatML *second)
 
template<class MatML_Class , class MatML_ContClass >
std::pair< MatML_Class *, MatML_Class * > MatMLFindAndBumpUp (MatML_Class *matml, MatML_ContClass &cont)
 
template<class MatML_Class , class MatML_ContClass >
std::pair< MatML_Class *, MatML_Class * > MatMLFindAndBumpUpStrongtype (MatML_Class *matml, MatML_ContClass &cont)
 
template<class MatML_ContClass >
std::pair< typename MatML_ContClass::value_type *, typename MatML_ContClass::value_type * > MatMLFindAndBumpUpHavingId (typename MatML_ContClass::value_type *matml, MatML_ContClass &cont)
 Similar to MatMLFindAndBumpUp with the added complication that the Required Id's cannot be duplicated during the swap. More...
 
template<class MatML_ContClass >
std::pair< typename MatML_ContClass::value_type *, typename MatML_ContClass::value_type * > MatMLFindAndBumpUpHavingOptionalId (typename MatML_ContClass::value_type *matml, MatML_ContClass &cont)
 Similar to MatMLFindAndBumpUp with the added complication that the optional Id's cannot be duplicated during the swap. More...
 
template<class Child_GUI , class MatML >
void MatMLTreeCtrlBumpUp (TreeCtrlSorted *&treectrl, wxTreeItemId &itemParentId, wxTreeItemId &previtemId, MatML *first, wxTreeItemId &itemId, MatML *second)
 
template<class Child_GUI , class MatML >
void MatMLTreeCtrlBumpUpStrongtype (TreeCtrlSorted *&treectrl, wxTreeItemId &itemParentId, wxTreeItemId &previtemId, MatML *first, wxTreeItemId &itemId, MatML *second)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpUp (boost::any anyptr, boost::any anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId itemId, wxTreeItemId nextitemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpUpStrongtype (boost::any anyptr, boost::any anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId itemId, wxTreeItemId nextitemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpUpHavingId (boost::any anyptr, boost::any anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId itemId, wxTreeItemId nextitemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpUpHavingOptionalId (boost::any anyptr, boost::any anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId itemId, wxTreeItemId nextitemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpDown (boost::any &anyptr, boost::any &anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId previtemId, wxTreeItemId itemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpDownStrongtype (boost::any &anyptr, boost::any &anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId previtemId, wxTreeItemId itemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpDownHavingId (boost::any &anyptr, boost::any &anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId previtemId, wxTreeItemId itemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpDownHavingOptionalId (boost::any &anyptr, boost::any &anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId previtemId, wxTreeItemId itemId)
 
- Public Member Functions inherited from bellshire::Utilities
void CollectBranchMaterials (boost::shared_ptr< MatML_Doc > doc, Material *m, std::vector< Material * > &ms)
 Collect Branch of Materials More...
 
void CollectBranchMaterialsBackwards (Material *m, std::vector< Material * > &ms)
 Collect Branch of Materials in the Backwards direction More...
 
void CollectBranchMaterialsForewards (boost::shared_ptr< MatML_Doc > doc, Material *m, std::vector< Material * > &ms)
 Collect Branch of Materials in the Forwards direction More...
 

Additional Inherited Members

- Static Public Member Functions inherited from bellshire::Utilities
static wxTreeItemId MatMLtoTreeCtrl (TreeCtrlSorted *MatMLTreeCtrl, Material *MatMLMaterial)
 Searches the TreeCtrl to find the MatML Element More...
 
static std::list< std::pair< Material *, xml_schema::string > > GetMaterialIDPair (::boost::shared_ptr< MatML_Doc > MatMLDoc, std::list< xml_schema::string > ClassFilters=std::list< xml_schema::string >())
 Gather Material* and Material->ID paired together in a list. More...
 
static bool InFilter (Material *material, std::list< xml_schema::string > Filter)
 Determines if the Material has a Class->Name for each of the ClassFilter strings If the filter is empty then the default is true. More...
 
static bool InFilter (Material *material, xml_schema::string *Filter)
 Determines if the Material has a Class->Name that matches the ClassFilter string More...
 
static std::list< Name * > GetMatMLDocClassNames (::boost::shared_ptr< MatML_Doc > MatMLDoc)
 Gathers within the MatMLDoc all of the materials->BulkDetails->Class->Name More...
 
static std::list< Name * > GetBulkDetailsClassNames (Material *material)
 Get the Materials BulkDetails->Class->Names More...
 
static bool CompareName (Name *&first, Name *&second)
 Comparision of the First Name to the Second Name More...
 
static bool SameName (Name *&first, Name *&second)
 Compare if the First Name and Second Name are the same a binary predicate implemented as a function More...
 
::std::string Label (::std::string name, ::std::string id)
 Creates a string of the Labels used in wxWidgets displays More...
 
::std::string LabelToId (::std::string label)
 
static std::list< xml_schema::string > wx2std (const wxArrayString &wxstr)
 Converts wxArrayString to std::list of xml_schema::string More...
 
static wxArrayString std2wx (const std::list< xml_schema::string > &stdstr)
 Converts list of xml_schema::string to wxArrayString More...
 

Member Function Documentation

◆ DeleteChild()

template<typename MatML_ContClass >
void bellshire::MatML_Base_GUI::DeleteChild ( MatML_ContClass &  MatML)

Does Nothing. Child are REQUIRED in the MatML structure and are inserted automatically through the Default classes.

Template Parameters
MatML_Class
MatML_ContClass
Parameters
MatML

◆ InsertChild()

template<typename MatML_Class , typename MatML_ContClass >
void bellshire::MatML_Base_GUI::InsertChild ( MatML_ContClass &  MatML_Cont)

Does Nothing. Child are required in the MatML structure and are inserted automatically through the Default classes.

Template Parameters
MatML_Class
MatML_ContClass
Parameters
MatML

◆ InsertContChild()

template<typename MatML_Class , typename MatML_ContClass >
void bellshire::MatML_Base_GUI::InsertContChild ( MatML_ContClass &  MatML_Cont)

Inserts the MatML Data into the MatML container element

Template Parameters
MatML_Class
MatML_ContClass
Parameters
MatMLMatML Container Class

◆ InsertSeqContChild()

template<typename MatML_Class , typename MatML_ContClass >
void bellshire::MatML_Base_GUI::InsertSeqContChild ( MatML_ContClass &  MatML_Cont)

Inserts the MatML Data into the MatML sequence container element

Template Parameters
MatML_Class
MatML_ContClass
Parameters
MatML

◆ MatMLFindAndBumpDownHavingId()

template<class MatML_Class , class MatML_ContClass >
std::pair< MatML_Class *, MatML_Class * > bellshire::MatML_Base_GUI::MatMLFindAndBumpDownHavingId ( MatML_Class *  matml,
MatML_ContClass &  cont 
)

Similar to MatMLFindAndBumpDown with the added complication that the Required Id's cannot be duplicated during the swap.

Template Parameters
MatML_Class
MatML_ContClass
Parameters
matml
cont
Returns

◆ MatMLFindAndBumpDownHavingOptionalId()

template<class MatML_Class , class MatML_ContClass >
std::pair< MatML_Class *, MatML_Class * > bellshire::MatML_Base_GUI::MatMLFindAndBumpDownHavingOptionalId ( MatML_Class *  matml,
MatML_ContClass &  cont 
)

Similar to MatMLFindAndBumpDown with the added complication that the optional Id's cannot be duplicated during the swap.

Template Parameters
MatML_Class
MatML_ContClass
Parameters
matml
cont
Returns

◆ MatMLFindAndBumpUpHavingId()

template<class MatML_ContClass >
std::pair< typename MatML_ContClass::value_type *, typename MatML_ContClass::value_type * > bellshire::MatML_Base_GUI::MatMLFindAndBumpUpHavingId ( typename MatML_ContClass::value_type *  matml,
MatML_ContClass &  cont 
)

Similar to MatMLFindAndBumpUp with the added complication that the Required Id's cannot be duplicated during the swap.

Template Parameters
MatML_ContClass
Parameters
matml
cont
Returns

◆ MatMLFindAndBumpUpHavingOptionalId()

template<class MatML_ContClass >
std::pair< typename MatML_ContClass::value_type *, typename MatML_ContClass::value_type * > bellshire::MatML_Base_GUI::MatMLFindAndBumpUpHavingOptionalId ( typename MatML_ContClass::value_type *  matml,
MatML_ContClass &  cont 
)

Similar to MatMLFindAndBumpUp with the added complication that the optional Id's cannot be duplicated during the swap.

Template Parameters
MatML_ContClass
Parameters
matml
cont
Returns

◆ PasteChild()

template<typename MatML_Class , typename MatML_ContClass >
void bellshire::MatML_Base_GUI::PasteChild ( MatML_Class *  MatML,
MatML_ContClass &  MatML_Cont 
)

Does Nothing. Child are required in the MatML structure and are inserted automatically through the Default classes.

◆ SetupStrongTypeSel()

template<typename MatML_ParentClass , typename GUI_ParentClass >
void bellshire::MatML_Base_GUI::SetupStrongTypeSel ( TreeCtrlSorted MatMLTreeCtrl)

Setup the selected wxTreeCtrl Item for MatML strongtypes

Template Parameters
MatML_ParentClass
GUI_ParentClass
Parameters
MatMLTreeCtrl

◆ SwapHavingId()

template<class MatML_Class >
void bellshire::MatML_Base_GUI::SwapHavingId ( MatML_Class *  matml0,
MatML_Class *  matml1 
)

Swap function with MatML Classes that have required Id. This has the added complication that the id's can not be duplicated during the swap.

Template Parameters
MatML_Class
Parameters
matml0
matml1

◆ SwapHavingOptionalId()

template<class MatML_Class >
void bellshire::MatML_Base_GUI::SwapHavingOptionalId ( MatML_Class *  matml0,
MatML_Class *  matml1 
)

Swap function with MatML Classes that have Optional Id. This has the added complication that the id's can not be duplicated during the swap.

Template Parameters
MatML_Class
Parameters
matml0
matml1

The documentation for this class was generated from the following files: