Project

General

Profile

Bug #663 » File.h

Zhimin Song, 01/01/2011 10:36 AM

 
// =====================================================================================
//
// Filename: File.h
//
// Description:
//
// Version: 1.0
// Created: 2010年07月19日 17时05分57秒
// Revision: none
// Compiler: g++
//
// Author: 宋志民 (Song Zhi-Min), cszhmsong@gmail.com
// Company: 希科系统开发小组(CxServer Development Team)
//
// =====================================================================================

#ifndef FILE_H_
#define FILE_H_

namespace Cs {

/**
* @addtogroup utils
*/
/*@{*/

/*! \class File File.h "utils/File.h"
* \brief A uploaed or being uploaded file, this comes from Emweb bvba's Wt example: an email attachment.
*/
class File {

public:

/*! \brief The file name.
*/
std::string fileName;

/*! \brief The content description.
*/
std::wstring contentDescription;

/*! \brief the spooled file name.
*/
std::string spoolFileName;

/*! \brief Create a file.
*/
File(const std::string aFileName, const std::wstring aContentDescription, const std::string aSpoolFileName)
: fileName(aFileName),
contentDescription(aContentDescription),
spoolFileName(aSpoolFileName) { }
};
/*@}*/
}
#endif // FILE_H_
(5-5/5)