|
/*
Author Vadim Motorine
email vad@friendly-ware.com
Copyright (C) 2006 Vadim Motorine
*/
#pragma once
#include "stdafx.h"
#include "CnctnVMCR.h"
#include "TskFbrck.h"
class CTskPsprt;
struct STskOnly;
class CTrdClssCr;
/*This is the main class that the working thread uses to send
the commands and receive the data*/
class CDoItVM
{
//CTskPsprt is used for the information exchange
//between the thread and the main program
CTskPsprt* tskPsprtP;//should be first (before CCnctnVM cnctn)
//CCnctnVM is responsible for the network connection and transport
CCnctnVM cnctn;//should be after CTskPsprt* tskPsprtP
//The task fabric gives the pointer of the abstract task class;
//the thread knows nothing about the job it does
CTskFbrck tskFbrc;
//The inner funcion that sends the command and recieves the data
//after some preparation are made in Prfrm()
bool DoIt(const STskOnly* tskOnlPtr, CTrdClssCr* tskP, const std::string& brcdCmndStr, bool isFrstTime = false);
//Gets the task pointer from the task fabric and makes some other
//preparations.
bool InitTsk(const STskOnly* tskOnlPtr, CTskPsprt* tskPsprtP,
CTrdClssCr** tskPP, std::string* brcdCmndStrP);
public:
CDoItVM(CTskPsprt* tskPsprtPI);
~CDoItVM(void);
//Sends the command and recieves the data
//The only function that the thread "see"
void Prfrm(STskOnly* tskOnlPtr);
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am working in the Russian branch of an international company in Novosibirsk (Russia) as the software engineer ("Software Engineer V") and the leader of the small team.
Now I believe that my level is so high that in C++ and MS Windows the specific "technology" does not important to me. It is probably enough to say that in my last shareware project (Your Voice Reminder, year 2006) I substituted my own clocks instead of the regular Microsoft in the MS Windows taskbar and implemented my own code to record and clear the voice messages including trimming the pause at the end. So now theses clocks may say date and time with your own voice. Also when I made a (limited time) test client / server project for a company to get the job (year 2006), I made the best project (as they estimated it) though I had no previous experience in the client /server programming.
The most large software that I made myself from the scratch had more than 60,000 lines of code and more than 300 C++ classes.
During seven years I was the manager of the successful software project in my own small software company (less than 5 people) where I was also the executive manger. The corresponding software was purchased by many Russian phone companies.
I know English and a little French.
I worked in USA (H1b visa only) and have the valid USA social security number.
Before 1993 I was a scientist and have Ph.D. in physics and mathematics.
After 1993 when the salary of the scientists in Russia dropped below the survival level (less than $100 /months) I became the Software Engineer.
Worked across the whole software -- in virtually all aspects of software design and implementation. I also worked with cross functional teams and as the project manager.
Besides C++ I also developed in Java.