CloneSet26


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8320.952member_specification
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1840
File/Exceptions.h
2852
File/Exceptions.h
3864
File/Exceptions.h
Clone Instance
1
Line Count
8
Source Line
40
Source File
File/Exceptions.h

          public:
                CouldNotOpenFile(LPCTSTR file_name, DWORD error_code): Exception(file_name,error_code) {
                                                                                                       }

                virtual ~CouldNotOpenFile() {
                                            }

                virtual void Message() const {
                        // provide error message for exception
                        std::cerr << "Could not open file \"" << m_file_name << "\". Error code: " << m_error_code << "." << std::endl;
                                             }



Clone Instance
2
Line Count
8
Source Line
52
Source File
File/Exceptions.h

          public:
                CouldNotReadFile(LPCTSTR file_name, DWORD error_code): Exception(file_name,error_code) {
                                                                                                       }

                virtual ~CouldNotReadFile() {
                                            }

                virtual void Message() const {
                        // provide error message for exception
                        std::cerr << "Could not read file \"" << m_file_name << "\". Error code: " << m_error_code << "." << std::endl;
                                             }



Clone Instance
3
Line Count
8
Source Line
64
Source File
File/Exceptions.h

          public:
                CouldNotWriteFile(LPCTSTR file_name, DWORD error_code): Exception(file_name,error_code) {
                                                                                                        }

                virtual ~CouldNotWriteFile() {
                                             }

                virtual void Message() const {
                        // provide error message for exception
                        std::cerr << "Could not write file \"" << m_file_name << "\". Error code: " << m_error_code << "." << std::endl;
                                             }



Clone AbstractionParameter Count: 2Parameter Bindings

public:
[[#variablea93aae0]](LPCTSTR file_name, DWORD error_code) : Exception(file_name, error_code)
  {
  }

virtual ~[[#variablea93aae0]]()
  {
  }

virtual void Message() const
  {
    // provide error message for exception
    std::cerr << [[#variablea93ab60]] << m_file_name << "\". Error code: " << m_error_code << "." << std::endl;
  }

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a93aae0]]
CouldNotWriteFile 
12[[#a93aae0]]
CouldNotReadFile 
13[[#a93aae0]]
CouldNotOpenFile 
21[[#a93ab60]]
"Could not write file \"" 
22[[#a93ab60]]
"Could not read file \"" 
23[[#a93ab60]]
"Could not open file \""