added winix functions: ln winix function 'default' can be used without redirecting now added new tickets types: TypeProgress, TypeString, TypeMultistring, TypeImages, TypeFiles now tickets are combined with files added winix functions: showtickets fixed mountpoints: when the default root mount was created its parameter table was empty and it caused accessing to a non-existing objects fixed logger: modifiers (log1, log2, log3) were incorrectly treated added modifier: log4 (debug info) now we are moving threads to a new plugin 'thread' created directory: plugins/thread (not finished yet) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@704 e52654a7-88a9-db11-a3e9-0013d4bc506e
43 lines
680 B
C++
Executable File
43 lines
680 B
C++
Executable File
/*
|
|
* This file is a part of Winix
|
|
* and is not publicly distributed
|
|
*
|
|
* Copyright (c) 2010, Tomasz Sowa
|
|
* All rights reserved.
|
|
*
|
|
*/
|
|
|
|
#include "sessiondata.h"
|
|
|
|
|
|
namespace Ticket
|
|
{
|
|
|
|
|
|
|
|
Ticket & SessionData::GetTicket(long id, SessionData::TicketMap & ticket_map, bool * is_new)
|
|
{
|
|
std::pair<TicketMap::iterator, bool> res = ticket_map.insert( std::make_pair(id, Ticket()) );
|
|
|
|
if( is_new )
|
|
*is_new = res.second;
|
|
|
|
return res.first->second;
|
|
}
|
|
|
|
|
|
|
|
std::vector<long> & SessionData::GetFileTab(long id, FileMap & file_map)
|
|
{
|
|
std::pair<FileMap::iterator, bool> res = file_map.insert( std::make_pair(id, std::vector<long>()) );
|
|
|
|
return res.first->second;
|
|
}
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|