示例#1
0
void HardDriveStorage::loadFromFile()
{
    QSettings settings;
    QVariant var;
    settings.beginGroup(name());
    var = settings.value("directory_path", QVariant(m_directoryPath));
    setDirectoryPath(var.toString());
    settings.endGroup();
}
示例#2
0
CFileCreater::CFileCreater(CString _strDirectoryPath)
	:m_iFileNumber(0),m_strAddFileName(_T("")),m_strFilePath(_T(""))
{
	setDirectoryPath(_strDirectoryPath);
	setStep(0);
	m_pBufferData = NULL;
	m_dwBufferSize = 0;
	m_pAddData = NULL;
	m_dwAddSize = 0;
}
示例#3
0
void Properties::setDirectoryPath(const std::string* path)
{
    if (path)
    {
        setDirectoryPath(*path);
    }
    else
    {
        CC_SAFE_DELETE(_dirPath);
    }
}
示例#4
0
Properties::Properties(const Properties& copy)
    : _namespace(copy._namespace), _id(copy._id), _parentID(copy._parentID), _properties(copy._properties),
      _variables(nullptr), _dirPath(nullptr), _parent(copy._parent),
      _dataIdx(copy._dataIdx), _data(copy._data)
{
    setDirectoryPath(copy._dirPath);

    for (const auto space: copy._namespaces)
    {
        _namespaces.push_back(new (std::nothrow) Properties(*space));
    }
    rewind();
}