Subversion Repositories DevTools

Rev

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

Rev 2265 Rev 2267
Line 66... Line 66...
66
//## Operation: UdFileManifest%4209BAA8031C
66
//## Operation: UdFileManifest%4209BAA8031C
67
UdFileManifest::UdFileManifest (const std::string &folder, const std::string &prefix, const std::string &suffix, const std::string &pathmapTarget)
67
UdFileManifest::UdFileManifest (const std::string &folder, const std::string &prefix, const std::string &suffix, const std::string &pathmapTarget)
68
  //## begin UdFileManifest::UdFileManifest%4209BAA8031C.hasinit preserve=no
68
  //## begin UdFileManifest::UdFileManifest%4209BAA8031C.hasinit preserve=no
69
      : m_count(0),
69
      : m_count(0),
70
        m_folder("..\\data\\summaries"),
70
        m_folder("..\\data\\summaries"),
71
	    m_pathmapTarget(pathmapTarget),
71
	     m_pathmapTarget(folder),  // yes we deliberately use folder for pathmapTarget
72
        m_prefix(prefix),
72
        m_prefix(prefix),
73
        m_stream(0),
73
        m_stream(0),
74
        m_suffix(suffix)
74
        m_suffix(suffix)
75
  //## end UdFileManifest::UdFileManifest%4209BAA8031C.hasinit
75
  //## end UdFileManifest::UdFileManifest%4209BAA8031C.hasinit
76
  //## begin UdFileManifest::UdFileManifest%4209BAA8031C.initialization preserve=yes
76
  //## begin UdFileManifest::UdFileManifest%4209BAA8031C.initialization preserve=yes
Line 95... Line 95...
95
 
95
 
96
void UdFileManifest::addTestDetails (const std::string &testDetails)
96
void UdFileManifest::addTestDetails (const std::string &testDetails)
97
{
97
{
98
	   (*m_stream) << testDetails;
98
	   (*m_stream) << testDetails;
99
		(*m_stream) << std::endl;
99
		(*m_stream) << std::endl;
-
 
100
      //(*m_stream) <<  "UD is generated into " << m_pathmapTarget; 
-
 
101
		//(*m_stream) << std::endl;
100
}
102
}
101
 
103
 
102
 
104
 
103
//## Other Operations (implementation)
105
//## Other Operations (implementation)
104
//## Operation: addUdFile%4209BAC703E7
106
//## Operation: addUdFile%4209BAC703E7
Line 115... Line 117...
115
		const bool slash
117
		const bool slash
116
			= m_pathmapTarget.find_last_of( "/\\" )
118
			= m_pathmapTarget.find_last_of( "/\\" )
117
				== m_pathmapTarget.length() - 1;
119
				== m_pathmapTarget.length() - 1;
118
		const std::string::size_type where = file.find_last_of( "/\\" );
120
		const std::string::size_type where = file.find_last_of( "/\\" );
119
 
121
 
120
		(*m_stream) << m_pathmapTarget;
122
	   //(*m_stream) << m_pathmapTarget; //just put filename in manifest
121
		if ( where != std::string::npos )
123
		if ( where != std::string::npos )
122
		{
124
		{
123
			if ( !slash )
125
			if ( !slash )
124
			{
126
			{
125
				(*m_stream) << '/';
127
				(*m_stream) << '/';