Subversion Repositories DevTools

Rev

Rev 2265 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2265 Rev 2269
Line 742... Line 742...
742
	 *	Build an XPath from the name of the structure that we are traversing
742
	 *	Build an XPath from the name of the structure that we are traversing
743
	 *	right now and the xpath reported by the element being visited.  Then
743
	 *	right now and the xpath reported by the element being visited.  Then
744
	 *	look for a field with that XPath.
744
	 *	look for a field with that XPath.
745
	 */
745
	 */
746
 
746
 
-
 
747
    bool deviceId = false;
-
 
748
    bool csn = false;
-
 
749
        
747
	std::stringstream xpath;
750
	std::stringstream xpath;
748
	if ( element.getAttributeValue( "xpath", *m_string ) )
751
	if ( element.getAttributeValue( "xpath", *m_string ) )
749
	{
752
	{
750
		xpath
753
		xpath
751
			<< '/'
754
			<< '/'
752
			<< m_structure[ m_structureIndex ]->getName()
755
			<< m_structure[ m_structureIndex ]->getName()
753
			<< m_string->c_str();
756
			<< m_string->c_str();
-
 
757
            
-
 
758
        if (strcmp(m_string->c_str(),"/sysComHdr/deviceId")== 0)
-
 
759
        {
-
 
760
           deviceId=true ;
-
 
761
        }
-
 
762
        else if (strcmp(m_string->c_str(),"/sysCardCom/cardSerialNumber")== 0)
-
 
763
        {
-
 
764
           csn=true;
-
 
765
        } 
-
 
766
//else MessageDlg(m_string->c_str(), mtConfirmation, TMsgDlgButtons() << mbOK, 0 ) ;        
754
 
767
 
755
		/**
768
		/**
756
		 *	Find the element if we have it.  We get calls for everything, not
769
		 *	Find the element if we have it.  We get calls for everything, not
757
		 *	just for what we have.  When we don't have the element, then we
770
		 *	just for what we have.  When we don't have the element, then we
758
		 *	have nothing to set, which is fine.
771
		 *	have nothing to set, which is fine.
Line 768... Line 781...
768
				if ( !postponed )
781
				if ( !postponed )
769
				{
782
				{
770
					*m_string = value.c_str();
783
					*m_string = value.c_str();
771
					if ( element.setString( *m_string ) )
784
					if ( element.setString( *m_string ) )
772
					{
785
					{
-
 
786
                        // for device Id and card serial number store away value for later use
-
 
787
                        if (deviceId == true)
-
 
788
                            context.setDeviceId(value.c_str());
-
 
789
                        if (csn == true)
-
 
790
                            context.setCsn(value.c_str());
-
 
791
    
773
						return ( true );
792
						return ( true );
774
					}
793
					}
775
					else
794
					else
776
					{
795
					{
777
						std::string datatype;
796
						std::string datatype;