-
Notifications
You must be signed in to change notification settings - Fork 0
/
ProjectFile.hpp
42 lines (33 loc) · 1.03 KB
/
ProjectFile.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
////////////////////////////////////////////////////////////////////////////////
//! \file ProjectFile.hpp
//! \brief The ProjectFile class declaration.
//! \author Chris Oldwood
// Check for previous inclusion
#ifndef PROJECTFILE_HPP
#define PROJECTFILE_HPP
#if _MSC_VER > 1000
#pragma once
#endif
#include <XML/Document.hpp>
////////////////////////////////////////////////////////////////////////////////
//! The structure used to hold the filename and XML DOM for a VC++ project file.
struct ProjectFile
{
//
// Members.
//
tstring m_pathName; //!< The project full path name.
tstring m_fileName; //!< The project filename.
XML::DocumentPtr m_xmlDoc; //!< The XML document DOM.
//! Default constructor.
ProjectFile(const tstring& pathName);
};
////////////////////////////////////////////////////////////////////////////////
//! Default constructor.
inline ProjectFile::ProjectFile(const tstring& pathName)
: m_pathName(pathName)
, m_fileName(CPath(pathName.c_str()).FileName())
, m_xmlDoc()
{
}
#endif // PROJECTFILE_HPP