Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

SSETH

@SSETH
About
Posts
7
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Beizier surface
    S SSETH

    No Richard..The earlier question was for "curve"... And this one is for "surface". which is pretty complex than Curve.

    Algorithms tutorial

  • Beizier surface
    S SSETH

    My earlier question is completely different than this one.. Thanks.

    Algorithms tutorial

  • How to design the accessibility problem
    S SSETH

    Thanks for respond ..I dont know if you are really getting the what exactly I am trying to target in the code.. without friend and making public accessibility I want to restrict the permission to some particular user... The way I am achieving is just one of the use case of Private Inheritance.. Could you please post here your approach(Design) in C++.. Thanks in advance..

    Design and Architecture help question c++ design tutorial

  • How to design the accessibility problem
    S SSETH

    class AccountInterface
    {
    public :
    virtual void CheckAccount() = 0;
    };

    class Accountant
    {
    private:
    AccountInterface * accountDept;
    public:
    Accountant():accountDept(NULL){}
    void SetCompanyAccDept(AccountInterface *accDept){accountDept = accDept;}

    void AuditCompany()
    {
    	if (accountDept)
    		accountDept->CheckAccount();
    	else
    		printf("Compnay info not set");
    }
    

    };

    class company : private AccountInterface
    {
    private:
    virtual void CheckAccount()
    {
    printf("Only Granted Accountant should have access to this");
    }
    public:
    void SetAccuntant(Accountant *accountant)
    {
    //Based on some logic grant access
    accountant->SetCompanyAccDept(this);
    }
    };

    int main (int argc, char *argv[])
    {
    company c1;
    Accountant ac1;
    c1.SetAccuntant(&ac1);
    ac1.AuditCompany();

    }

    I tried to demonstrate the idea with a company its account deptartment and an accountant. Account Details should not be public. (no Public access) The Accountant should not be able to access other details of the company ( No friend) Company is responsible for granting access permission --Private Inheritance..( is a relationship with base class but no exposed to public) Thanks, SSETH

    Design and Architecture help question c++ design tutorial

  • Beizier surface
    S SSETH

    Hi, Given a set of points data, does any one know how to formulate Bezier Spline surface. Thanks in advance. SSETH

    Algorithms tutorial

  • Piece wise Bezier Spline curve
    S SSETH

    Can any one suggest how to create C2 continuous piece wise Bezier spline curve with vector method? Thanks in advance. ~SSETH

    Algorithms graphics tutorial question

  • How to design the accessibility problem
    S SSETH

    Hello All, Could any one suggest how can I design the following the problem in C++? How to provide access to a component of a Class to some third person. The constraints are 1. The third person should not be able to see the other details of the class! 2. the component should be accessible to only that particular third person! I have a solution to the problem. But I would like to know other approaches to solve the issue. Thanks in advance ~SSETH

    Design and Architecture help question c++ design tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups