Пример #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();
}